From 7bf4865f880ee9d6d73fba8371b2ef33fdf5dd2a Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 3 Nov 2020 18:35:46 +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 b448316..12e943b 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -110,7 +110,7 @@ public abstract class REntity { 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), new WrappedWatchableObject((byte)0xff, null))); + packet.getWatchableCollectionModifier().write(0, Util.asList(new WrappedWatchableObject(0, (byte)0x02), new WrappedWatchableObject(0xff, null))); for(Player player : Bukkit.getOnlinePlayers()){ try {