From 9d89c169d1c15f0e4e9f735d44ad6ff3905cb0eb Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 3 Nov 2020 18:38:05 +0100 Subject: [PATCH] Test sneaking --- src/de/steamwar/spectatesystem/elements/REntity.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/de/steamwar/spectatesystem/elements/REntity.java b/src/de/steamwar/spectatesystem/elements/REntity.java index 12e943b..9b1a956 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -110,8 +110,8 @@ 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(0xff, null))); - + packet.getWatchableCollectionModifier().write(0, Util.asList(new WrappedWatchableObject(0, (byte)0x02))); + System.out.println(packet); for(Player player : Bukkit.getOnlinePlayers()){ try { ProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);