mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Fix item despawning on plots
This commit is contained in:
parent
25ed9d2798
commit
fd4a5f2aaa
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user