fix: handling of item despawning on road

This commit is contained in:
Pierre Maurice Schwang 2022-08-08 19:23:10 +02:00
parent 3d19c5c2ad
commit 62fac61c4d

View File

@ -140,6 +140,12 @@ public class EntitySpawnListener implements Listener {
event.setCancelled(true); event.setCancelled(true);
} }
} }
if (type == EntityType.DROPPED_ITEM) {
if (Settings.Enabled_Components.KILL_ROAD_ITEMS) {
event.setCancelled(true);
}
return;
}
if (!area.isMiscSpawnUnowned() && !type.isAlive()) { if (!area.isMiscSpawnUnowned() && !type.isAlive()) {
event.setCancelled(true); event.setCancelled(true);
} }