Fix #isAccessible() deprecation in HybridPlotWorld (#4177)

Fixes https://github.com/IntellectualSites/PlotSquared/issues/4165
This commit is contained in:
BlockyTheDev 2023-10-01 11:50:19 +02:00 committed by GitHub
parent 4fe0c586d9
commit c1555ddbc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);