Compare commits

...

1 Commits

Author SHA1 Message Date
dordsor21
2d0fdccc48 Fix: Plot#getOwner can be nullable, and redstone may be present on unowned plots 2022-01-25 15:41:49 +00:00

View File

@@ -166,7 +166,7 @@ public class BlockEventListener implements Listener {
}
if (Settings.Redstone.DISABLE_OFFLINE) {
boolean disable = false;
if (!plot.getOwner().equals(DBFunc.SERVER)) {
if (!DBFunc.SERVER.equals(plot.getOwner())) {
if (plot.isMerged()) {
disable = true;
for (UUID owner : plot.getOwners()) {