From ee46496ca21838401e24ecaf3145f00d84344a31 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 6 Nov 2020 11:22:32 +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 4550cd5..bbc367a 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -104,7 +104,7 @@ public abstract class REntity { DataWatcher dataWatcher = new DataWatcher(entity); dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x00); - 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);