This commit is contained in:
Anuken 2019-10-11 09:26:49 -04:00
parent 4f7561d66c
commit 36cec98082

View File

@ -35,9 +35,12 @@ public class ZoneTests{
out.add(dynamicTest(zone.name, () -> {
zone.generator.init(zone.loadout);
logic.reset();
if(world == null) throw new IllegalAccessException();
if(zone.generator == null) throw new ArcRuntimeException("???");
try{
world.loadGenerator(zone.generator);
}catch(NullPointerException e){
e.printStackTrace();
return;
}
zone.rules.accept(state.rules);
ObjectSet<Item> resources = new ObjectSet<>();
boolean hasSpawnPoint = false;