From 4c2119e404310bf01a1fa46ae6213c4a29447998 Mon Sep 17 00:00:00 2001 From: Pierre Maurice Schwang Date: Thu, 10 Nov 2022 18:45:35 +0100 Subject: [PATCH] Fix error on latest paper while copying entities (#2006) --- .../adapter/impl/fawe/v1_19_R1/PaperweightPlatformAdapter.java | 1 + 1 file changed, 1 insertion(+) diff --git a/worldedit-bukkit/adapters/adapter-1_19/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R1/PaperweightPlatformAdapter.java b/worldedit-bukkit/adapters/adapter-1_19/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R1/PaperweightPlatformAdapter.java index 9b4d5cb7e..0423a03a7 100644 --- a/worldedit-bukkit/adapters/adapter-1_19/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R1/PaperweightPlatformAdapter.java +++ b/worldedit-bukkit/adapters/adapter-1_19/src/main/java/com/sk89q/worldedit/bukkit/adapter/impl/fawe/v1_19_R1/PaperweightPlatformAdapter.java @@ -188,6 +188,7 @@ public final class PaperweightPlatformAdapter extends NMSAdapter { ServerLevel.class.getDeclaredMethod("getEntityLookup"); chunkRewrite = true; PAPER_CHUNK_GEN_ALL_ENTITIES = ChunkEntitySlices.class.getDeclaredMethod("getAllEntities"); + PAPER_CHUNK_GEN_ALL_ENTITIES.setAccessible(true); } catch (NoSuchMethodException ignored) { chunkRewrite = false; }