Fix startup error

This commit is contained in:
Sam 2017-11-24 17:51:07 +00:00 committed by Alexander Meech
parent 05de6143ec
commit 1b4f9227a7
1 changed files with 2 additions and 6 deletions

View File

@ -62,12 +62,6 @@ public class CakeIslandModule extends CakeModule
_schematic = new HashSet<>(200);
}
@Override
protected void setup()
{
_center = _game.WorldData.GetDataLocs("WHITE").get(0);
}
@Override
public void cleanup()
{
@ -83,6 +77,8 @@ public class CakeIslandModule extends CakeModule
return;
}
_center = _game.WorldData.GetDataLocs("WHITE").get(0);
List<Location> corners = _game.WorldData.GetCustomLocs("CUSTOM_ISLAND");
List<Block> blocks = UtilBlock.getInBoundingBox(corners.get(0), corners.get(1));
Location center = null;