From d8786bd7d9e63a7633b6e8456d6b40112800d064 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 6 Nov 2020 12:09:35 +0100 Subject: [PATCH] Test sneaking --- src/de/steamwar/spectatesystem/elements/REntity.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/de/steamwar/spectatesystem/elements/REntity.java b/src/de/steamwar/spectatesystem/elements/REntity.java index 434a4f4..936fe50 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -104,8 +104,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)0x00); - dataWatcher.register(new DataWatcherObject<>(6, DataWatcherRegistry.s), sneaking ? EntityPose.CROUCHING : EntityPose.STANDING); + dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x40); PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, false); for(Player player : Bukkit.getOnlinePlayers()){