This commit is contained in:
Jesse Boyd 2016-05-19 18:28:06 +10:00
parent 75c7fe969c
commit 7873bcf592

View File

@ -131,9 +131,8 @@ public class PlotPlusListener extends PlotListener implements Listener {
return; return;
} }
UUID uuid = pp.getUUID(); UUID uuid = pp.getUUID();
if (plot.isAdded(uuid)) { if (!plot.isAdded(uuid)) {
Optional<Boolean> flag = plot.getFlag(Flags.ITEM_DROP); if (Flags.ITEM_DROP.isFalse(plot)) {
if (flag.isPresent() && !flag.get()) {
event.setCancelled(true); event.setCancelled(true);
} }
} }