1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-09-20 12:58:38 +03:00
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("???");
world.loadGenerator(zone.generator);
try{
world.loadGenerator(zone.generator);
}catch(NullPointerException e){
e.printStackTrace();
return;
}
zone.rules.accept(state.rules);
ObjectSet<Item> resources = new ObjectSet<>();
boolean hasSpawnPoint = false;