From 7873bcf592bd57a897297f0df1886fe90ce61879 Mon Sep 17 00:00:00 2001 From: Jesse Boyd Date: Thu, 19 May 2016 18:28:06 +1000 Subject: [PATCH] Fixes #1102 --- .../com/plotsquared/bukkit/listeners/PlotPlusListener.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java index c61c18180..4e8ec310b 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listeners/PlotPlusListener.java @@ -131,9 +131,8 @@ public class PlotPlusListener extends PlotListener implements Listener { return; } UUID uuid = pp.getUUID(); - if (plot.isAdded(uuid)) { - Optional flag = plot.getFlag(Flags.ITEM_DROP); - if (flag.isPresent() && !flag.get()) { + if (!plot.isAdded(uuid)) { + if (Flags.ITEM_DROP.isFalse(plot)) { event.setCancelled(true); } }