mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-26 07:06:44 +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 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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user