From 4675f05be89e042771c14c585c452f1c0419f2a6 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 6 Nov 2020 12:15:54 +0100 Subject: [PATCH] Test sneaking --- src/de/steamwar/spectatesystem/elements/REntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/spectatesystem/elements/REntity.java b/src/de/steamwar/spectatesystem/elements/REntity.java index 936fe50..58bf241 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -105,7 +105,7 @@ public abstract class REntity { DataWatcher dataWatcher = new DataWatcher(entity); System.out.println("Let " + entity.getName() + " sneak " + sneaking); dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x40); - PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, false); + PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, true); for(Player player : Bukkit.getOnlinePlayers()){ ((CraftPlayer)player).getHandle().playerConnection.sendPacket(packet);