From 893c42d7461baeb96676365845060efbe8a20e26 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Fri, 3 Mar 2023 16:38:20 +0100 Subject: [PATCH] Fix REntity --- SpigotCore_Main/src/de/steamwar/entity/REntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_Main/src/de/steamwar/entity/REntity.java b/SpigotCore_Main/src/de/steamwar/entity/REntity.java index 83dc391..ff76c72 100644 --- a/SpigotCore_Main/src/de/steamwar/entity/REntity.java +++ b/SpigotCore_Main/src/de/steamwar/entity/REntity.java @@ -350,7 +350,7 @@ public class REntity { } private static final Class metadataPacket = Reflection.getClass("{nms.network.protocol.game}.PacketPlayOutEntityMetadata"); - private static final Reflection.FieldAccessor metadataEntity = Reflection.getField(metadataPacket, int.class, 0); + private static final Reflection.FieldAccessor metadataEntity = Reflection.getField(metadataPacket, int.class, Core.getVersion() > 18 ? 1 : 0); private static final Reflection.FieldAccessor metadataMetadata = Reflection.getField(metadataPacket, List.class, 0); protected Object getDataWatcherPacket(Object... dataWatcherKeyValues) {