From 32d3bddc39adaedc21458fea33525407a230928d Mon Sep 17 00:00:00 2001 From: Lixfel Date: Thu, 2 Feb 2023 08:40:16 +0100 Subject: [PATCH] Bugfix ChunkHider18 --- SpigotCore_18/src/de/steamwar/techhider/ChunkHider18.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SpigotCore_18/src/de/steamwar/techhider/ChunkHider18.java b/SpigotCore_18/src/de/steamwar/techhider/ChunkHider18.java index e994f63..9dde1ad 100644 --- a/SpigotCore_18/src/de/steamwar/techhider/ChunkHider18.java +++ b/SpigotCore_18/src/de/steamwar/techhider/ChunkHider18.java @@ -77,7 +77,7 @@ public class ChunkHider18 implements ChunkHider { public static final Class tileEntity = Reflection.getClass("net.minecraft.network.protocol.game.ClientboundLevelChunkPacketData$a"); protected static final Reflection.FieldAccessor entityType = Reflection.getField(tileEntity, TileEntityTypes.class, 0); - private static final IRegistry> tileEntityTypes = (IRegistry>) Reflection.getField(IRegistry.class, IRegistry.class, 0, TileEntityTypes.class); + private static final IRegistry tileEntityTypes = Reflection.getField(IRegistry.class, IRegistry.class, 0, TileEntityTypes.class).get(null); private static final Reflection.MethodInvoker getKey = Reflection.getTypedMethod(IRegistry.class, null, MinecraftKey.class, Object.class); private static final Reflection.MethodInvoker getName = Reflection.getTypedMethod(MinecraftKey.class, null, String.class); protected boolean tileEntityVisible(Set hiddenBlockEntities, Object tile) {