Might resolve #1331

Wasn't able to reproduce the issue
This commit is contained in:
manuelgu 2016-08-28 20:14:58 +02:00 committed by GitHub
parent 5e4798165b
commit 20250bc989

View File

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