diff --git a/src/de/steamwar/spectatesystem/elements/REntity.java b/src/de/steamwar/spectatesystem/elements/REntity.java index 39f7e36..e77e956 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -101,8 +101,7 @@ public abstract class REntity { public void sneak(boolean sneaking) { entity.setSneaking(sneaking); - entity.getDataWatcher().set(new DataWatcherObject<>(0, DataWatcherRegistry.a), (byte)0x02); - entity.getDataWatcher().markDirty(new DataWatcherObject<>(0, DataWatcherRegistry.a)); + entity.getDataWatcher().set(new DataWatcherObject(0, DataWatcherRegistry.a), (byte)0x02); PacketPlayOutEntityMetadata packet = new PacketPlayOutEntityMetadata(entity.getId(), entity.getDataWatcher(), false); for(Player player : Bukkit.getOnlinePlayers()){