From 2d0fdccc4886a5f34fff3b98f75c7d236ad5d917 Mon Sep 17 00:00:00 2001 From: dordsor21 Date: Tue, 25 Jan 2022 15:41:49 +0000 Subject: [PATCH] Fix: Plot#getOwner can be nullable, and redstone may be present on unowned plots --- .../com/plotsquared/bukkit/listener/BlockEventListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java index 66d92c502..5bc677613 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/BlockEventListener.java @@ -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()) {