Fix item despawning on plots

This commit is contained in:
dordsor21 2019-01-23 13:34:23 +00:00
parent 25ed9d2798
commit fd4a5f2aaa
2 changed files with 3 additions and 1 deletions

View File

@ -431,7 +431,8 @@ public final class BukkitMain extends JavaPlugin implements Listener, IPlotMain
case FIREBALL: case FIREBALL:
case DRAGON_FIREBALL: case DRAGON_FIREBALL:
case DROPPED_ITEM: case DROPPED_ITEM:
if (Settings.Enabled_Components.KILL_ROAD_ITEMS) { if (Settings.Enabled_Components.KILL_ROAD_ITEMS
&& BukkitUtil.getPlot(entity.getLocation()) == null) {
entity.remove(); entity.remove();
} }
// dropped item // dropped item

View File

@ -75,6 +75,7 @@ import java.util.List;
switch (type) { switch (type) {
case DROPPED_ITEM: case DROPPED_ITEM:
if (Settings.Enabled_Components.KILL_ROAD_ITEMS) { if (Settings.Enabled_Components.KILL_ROAD_ITEMS) {
event.setCancelled(true);
break; break;
} }
case PLAYER: case PLAYER: