From 92f41f43c52723abe1cfa4c81cd3f236fb62916d Mon Sep 17 00:00:00 2001 From: zombachu Date: Fri, 17 Dec 2021 15:52:15 -0500 Subject: [PATCH] fix: Ignore the use flag for liquid placement/removal (#3375) Fixes #3069 --- .../bukkit/listener/PlayerEventListener.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java index ee9a6d56d..b5c3a4028 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEventListener.java @@ -1239,13 +1239,6 @@ public class PlayerEventListener extends PlotListener implements Listener { ); event.setCancelled(true); } else if (!plot.isAdded(pp.getUUID())) { - List use = plot.getFlag(UseFlag.class); - final BlockType blockType = BukkitAdapter.asBlockType(block.getType()); - for (final BlockTypeWrapper blockTypeWrapper : use) { - if (blockTypeWrapper.accepts(blockType)) { - return; - } - } if (Permissions.hasPermission(pp, Permission.PERMISSION_ADMIN_BUILD_OTHER)) { return; } @@ -1311,14 +1304,6 @@ public class PlayerEventListener extends PlotListener implements Listener { ); event.setCancelled(true); } else if (!plot.isAdded(plotPlayer.getUUID())) { - List use = plot.getFlag(UseFlag.class); - Block block = event.getBlockClicked(); - final BlockType blockType = BukkitAdapter.asBlockType(block.getType()); - for (final BlockTypeWrapper blockTypeWrapper : use) { - if (blockTypeWrapper.accepts(blockType)) { - return; - } - } if (Permissions.hasPermission(plotPlayer, Permission.PERMISSION_ADMIN_BUILD_OTHER)) { return; }