From 4c71d140bf89c8a285dd5db62a631c09fdc24b45 Mon Sep 17 00:00:00 2001 From: TheMeinerLP Date: Sun, 18 Jun 2023 15:03:13 +0200 Subject: [PATCH] Fix access to world data --- .../adapter/impl/fawe/v1_19_R3/PaperweightFaweAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worldedit-bukkit/adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R3/PaperweightFaweAdapter.java b/worldedit-bukkit/adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R3/PaperweightFaweAdapter.java index c67e00531..b947c916e 100644 --- a/worldedit-bukkit/adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R3/PaperweightFaweAdapter.java +++ b/worldedit-bukkit/adapters/adapter-1_19_4/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R3/PaperweightFaweAdapter.java @@ -149,7 +149,7 @@ public final class PaperweightFaweAdapter extends CachedBukkitAdapter implements public PaperweightFaweAdapter() throws NoSuchFieldException, NoSuchMethodException { this.parent = new PaperweightAdapter(); if (this.parent.isFolia()) { - Method getCurrentWorldData = ServerLevel.class.getDeclaredMethod( + Method getCurrentWorldData = ServerLevel.class.getSuperclass().getDeclaredMethod( "getCurrentWorldData" ); getCurrentWorldData.setAccessible(true);