From 14c0696c9e4427faf6051b744ba8995d13723f98 Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Thu, 23 Jan 2014 08:39:17 +1300 Subject: [PATCH] Fixed illegal stance --- src/me/libraryaddict/disguise/disguisetypes/Disguise.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java index 8c090842..277aa05e 100644 --- a/src/me/libraryaddict/disguise/disguisetypes/Disguise.java +++ b/src/me/libraryaddict/disguise/disguisetypes/Disguise.java @@ -248,7 +248,7 @@ public abstract class Disguise { mods.write(0, getEntity().getEntityId()); } mods.write(2, (int) (8000D * (vectorY * ReflectionManager.getPing(player)) * 0.069D)); - if (lookPacket != null) { + if (lookPacket != null && player != getEntity()) { ProtocolLibrary.getProtocolManager().sendServerPacket(player, lookPacket, false); } ProtocolLibrary.getProtocolManager().sendServerPacket(player, velocityPacket.shallowClone(), @@ -266,7 +266,7 @@ public abstract class Disguise { try { for (Player player : DisguiseUtilities.getPerverts(disguise)) { if (DisguiseConfig.isViewDisguises() || getEntity() != player) { - ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet); + ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet, false); } } } catch (InvocationTargetException e) {