From 3f6b6aea19d561195438d241fe4bbddc75175246 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 6 Nov 2013 22:11:39 +1300 Subject: [PATCH] Fix paintings not appearing right away --- src/me/libraryaddict/disguise/PacketsManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/PacketsManager.java b/src/me/libraryaddict/disguise/PacketsManager.java index f77e2784..4974dbbe 100644 --- a/src/me/libraryaddict/disguise/PacketsManager.java +++ b/src/me/libraryaddict/disguise/PacketsManager.java @@ -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));