Merge pull request #1332 from manuelgu/patch-2

Might resolve #1331
This commit is contained in:
Jesse Boyd
2016-08-29 14:41:48 +10:00
committed by GitHub

View File

@@ -22,6 +22,9 @@ public class EntitySpawnListener implements Listener {
return;
}
Plot plot = area.getOwnedPlotAbs(location);
if (plot == null) {
return;
}
if (Settings.Done.RESTRICT_BUILDING && plot.hasFlag(Flags.DONE)) {
event.setCancelled(true);
}