From c1555ddbc7b58b050e976a0255db75b230993ac9 Mon Sep 17 00:00:00 2001 From: BlockyTheDev <86119630+BlockyTheDev@users.noreply.github.com> Date: Sun, 1 Oct 2023 11:50:19 +0200 Subject: [PATCH] Fix `#isAccessible()` deprecation in `HybridPlotWorld` (#4177) Fixes https://github.com/IntellectualSites/PlotSquared/issues/4165 --- .../java/com/plotsquared/core/generator/HybridPlotWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java b/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java index 93b877f50..d0ebd643b 100644 --- a/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java +++ b/Core/src/main/java/com/plotsquared/core/generator/HybridPlotWorld.java @@ -189,7 +189,7 @@ public class HybridPlotWorld extends ClassicPlotWorld { } Object value; try { - final boolean accessible = field.isAccessible(); + final boolean accessible = field.canAccess(this); field.setAccessible(true); value = field.get(this); field.setAccessible(accessible);