add back setShouldAbortSpawn

This commit is contained in:
dordsor21 2020-09-29 15:55:08 +01:00
parent 89318be5f4
commit 2f5ce67154
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -226,6 +226,7 @@ public class PaperListener implements Listener {
switch (type) {
case DROPPED_ITEM:
if (Settings.Enabled_Components.KILL_ROAD_ITEMS) {
event.setShouldAbortSpawn(true);
event.setCancelled(true);
return;
}
@ -233,10 +234,12 @@ public class PaperListener implements Listener {
return;
}
if (type.isAlive()) {
event.setShouldAbortSpawn(true);
event.setCancelled(true);
}
}
if (!area.isMiscSpawnUnowned() && !type.isAlive()) {
event.setShouldAbortSpawn(true);
event.setCancelled(true);
}
return;