From 33af86b54629d6e948a828882b7b7561eb797c64 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 3 Nov 2020 17:42:32 +0100 Subject: [PATCH] Test sneaking --- src/de/steamwar/spectatesystem/elements/REntity.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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) {