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 DRAGON_FIREBALL:
case DROPPED_ITEM:
if (Settings.Enabled_Components.KILL_ROAD_ITEMS) {
if (Settings.Enabled_Components.KILL_ROAD_ITEMS
&& BukkitUtil.getPlot(entity.getLocation()) == null) {
entity.remove();
}
// dropped item

View File

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