From 01db4fa9510ede3a8bd61f76434e2c9ae187e2c3 Mon Sep 17 00:00:00 2001 From: YoyoNow Date: Fri, 15 May 2026 16:00:50 +0200 Subject: [PATCH] Fix CraftbukkitWrapper for FightSystem --- .../src/de/steamwar/fightsystem/utils/CraftbukkitWrapper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper.java b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper.java index a73846af..c42faa24 100644 --- a/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper.java +++ b/FightSystem/FightSystem_Core/src/de/steamwar/fightsystem/utils/CraftbukkitWrapper.java @@ -41,8 +41,8 @@ public class CraftbukkitWrapper { public static final CraftbukkitWrapper impl = new CraftbukkitWrapper(); private static final Reflection.Method getWorld = Reflection.getMethod(Reflection.getClass("org.bukkit.craftbukkit.CraftWorld"), "getHandle"); - private static final Reflection.Method getChunk = Reflection.getTypedMethod(ServerLevel.class, null, Chunk.class, int.class, int.class); - private static final Reflection.Method getChunkSections = Reflection.getTypedMethod(Chunk.class, null, LevelChunkSection[].class); + private static final Reflection.Method getChunk = Reflection.getTypedMethod(ServerLevel.class, null, LevelChunk.class, int.class, int.class); + private static final Reflection.Method getChunkSections = Reflection.getTypedMethod(LevelChunk.class, null, LevelChunkSection[].class); private LevelChunkSection[] getChunkSections(World world, int x, int z) { return (LevelChunkSection[]) getChunkSections.invoke(getChunk.invoke(getWorld.invoke(world), x, z)); }