Fix paintings not appearing right away

This commit is contained in:
Andrew 2013-11-06 22:11:39 +13:00
parent a0f96778e9
commit 3f6b6aea19

View File

@ -208,9 +208,9 @@ public class PacketsManager {
spawnPackets[1] = new PacketContainer(Packets.Server.ENTITY_TELEPORT);
mods = spawnPackets[1].getModifier();
mods.write(0, disguisedEntity.getEntityId());
mods.write(1, (int) Math.floor(entitySize.a(loc.getX()) * 32D));
mods.write(1, (int) Math.floor(loc.getX() * 32D));
mods.write(2, (int) Math.floor(loc.getY() * 32D));
mods.write(3, (int) Math.floor(entitySize.a(loc.getZ()) * 32D));
mods.write(3, (int) Math.floor(loc.getZ() * 32D));
mods.write(4, yaw);
mods.write(5, (byte) (int) (loc.getPitch() * 256.0F / 360.0F));