mirror of
https://github.com/TotalFreedomMC/TF-PlotSquared.git
synced 2024-12-23 00:15:06 +00:00
Fix item despawning on plots
This commit is contained in:
parent
25ed9d2798
commit
fd4a5f2aaa
2 changed files with 3 additions and 1 deletions
|
@ -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 a new issue