From 7571158e82705a54c1e5971d716de07f42c166fa Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 6 Nov 2020 11:34:11 +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 24fae90..3ea6d9a 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -103,7 +103,7 @@ public abstract class REntity { entity.setSneaking(sneaking); DataWatcher dataWatcher = new DataWatcher(entity); - //dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x00); + dataWatcher.register(new DataWatcherObject<>(0, DataWatcherRegistry.a), sneaking ? (byte)0x02 : (byte)0x00); dataWatcher.register(new DataWatcherObject<>(6, DataWatcherRegistry.s), sneaking ? EntityPose.CROUCHING : EntityPose.STANDING); PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), dataWatcher, false);