From 0f11361651236ab47fbccebc6c2674f0a0dbf4be Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 3 Nov 2020 18:31:30 +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 dbfa6ef..f552fdd 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -108,10 +108,9 @@ public abstract class REntity { public void sneak(boolean sneaking) { entity.setSneaking(sneaking); - PacketContainer packet = ProtocolLibrary.getProtocolManager().createPacket(PacketType.Play.Server.ENTITY_METADATA); packet.getIntegers().write(0, entity.getId()); - packet.getWatchableCollectionModifier().write(0, Util.asList(new WrappedWatchableObject(0, (byte)0x02))); + packet.getWatchableCollectionModifier().write(0, Util.asList(new WrappedWatchableObject(0, (byte)0x02), new WrappedWatchableObject((byte)0xff))); for(Player player : Bukkit.getOnlinePlayers()){ try {