diff --git a/src/de/steamwar/spectatesystem/elements/REntity.java b/src/de/steamwar/spectatesystem/elements/REntity.java index dcfab37..8cf94b5 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -101,12 +101,11 @@ public abstract class REntity { public void sneak(boolean sneaking) { entity.setSneaking(sneaking); - // PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(1, entity.getDataWatcher(), sneaking); - /*PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(7, entity.getDataWatcher(), sneaking); + PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), entity.getDataWatcher(), sneaking); for(Player player : Bukkit.getOnlinePlayers()){ PlayerConnection connection = ((CraftPlayer)player).getHandle().playerConnection; connection.sendPacket(packet); - }*/ + } } public void animation(byte animation) {