From 1f28bac95556af6792e0399b81f2085f1c469d50 Mon Sep 17 00:00:00 2001 From: Jordan Date: Thu, 27 Jan 2022 12:14:16 +0100 Subject: [PATCH] Fix: Plot#getOwner can be nullable, and redstone may be present on unowned plots (#3472) --- .../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()) {