From c1ea028529b65eb62bf58a602a73300ceccdea59 Mon Sep 17 00:00:00 2001 From: Lixfel Date: Sun, 15 Jan 2023 19:31:22 +0100 Subject: [PATCH] Hotfix EntityTypes --- SpigotCore_8/src/de/steamwar/core/ProtocolWrapper8.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_8/src/de/steamwar/core/ProtocolWrapper8.java b/SpigotCore_8/src/de/steamwar/core/ProtocolWrapper8.java index d0e0e03..a6a43de 100644 --- a/SpigotCore_8/src/de/steamwar/core/ProtocolWrapper8.java +++ b/SpigotCore_8/src/de/steamwar/core/ProtocolWrapper8.java @@ -63,7 +63,7 @@ public class ProtocolWrapper8 implements ProtocolWrapper { spawnType = Reflection.getField(ProtocolWrapper.spawnPacket, entityTypes, 0); types.put(EntityType.ARMOR_STAND, 1); for(EntityType type : new EntityType[]{EntityType.PRIMED_TNT, EntityType.ARROW, EntityType.FIREBALL, EntityType.ITEM_FRAME, EntityType.FALLING_BLOCK}) - types.put(type, Reflection.getField(entityTypes, type.name(), entityTypes).get(null)); + types.put(type, Reflection.getField(entityTypes, type != EntityType.PRIMED_TNT ? type.name() : "TNT", entityTypes).get(null)); } } @Override