mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 11:45:19 +01:00
Fix #isAccessible()
deprecation in HybridPlotWorld
(#4177)
Fixes https://github.com/IntellectualSites/PlotSquared/issues/4165
This commit is contained in:
parent
4fe0c586d9
commit
c1555ddbc7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user