Set `misc_spawn_unowned`
This commit is contained in:
Jesse Boyd
2017-03-13 18:36:40 +11:00
parent a0640a1e66
commit a015039dad
2 changed files with 6 additions and 1 deletions

View File

@ -24,7 +24,9 @@ public class EntitySpawnListener implements Listener {
Plot plot = area.getOwnedPlotAbs(location);
if (plot == null) {
if (!area.MOB_SPAWNING) {
event.setCancelled(true);
if (event.getEntityType().isAlive() || !area.MISC_SPAWN_UNOWNED) {
event.setCancelled(true);
}
}
return;
}