Block disguise velocity tweak.

This commit is contained in:
Jonathan Williams 2013-11-08 16:06:17 -08:00
parent 6885f89130
commit 980ce0a5a3
1 changed files with 14 additions and 2 deletions

View File

@ -387,7 +387,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
velocityPacket.c = (int) (.8 * lastVelocityPacket.c);
velocityPacket.d = (int) (.8 * lastVelocityPacket.d);
}
_movePacketMap.put(movePacket.a, velocityPacket);
packetList.forceAdd(velocityPacket);
@ -402,6 +402,12 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
}
});
}
if (_spawnPacketMap.get(movePacket.a) instanceof DisguiseBlock)
{
packetList.forceAdd(velocityPacket);
packetList.forceAdd(velocityPacket);
}
}
else if (packet instanceof Packet33RelEntityMoveLook)
{
@ -434,7 +440,7 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
velocityPacket.c = (int) (.8 * lastVelocityPacket.c);
velocityPacket.d = (int) (.8 * lastVelocityPacket.d);
}
_movePacketMap.put(movePacket.a, velocityPacket);
packetList.forceAdd(velocityPacket);
@ -449,6 +455,12 @@ public class DisguiseManager extends MiniPlugin implements IPacketRunnable
}
});
}
if (_spawnPacketMap.get(movePacket.a) instanceof DisguiseBlock)
{
packetList.forceAdd(velocityPacket);
packetList.forceAdd(velocityPacket);
}
}
else if (packet instanceof Packet62NamedSoundEffect)
{