From a726ecbdd8ca6b23f3070a58dc06c26a4b5be6d2 Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 26 Oct 2018 15:30:08 -0400 Subject: [PATCH] Fixed invalid map state not being reset --- core/src/io/anuke/mindustry/core/World.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/src/io/anuke/mindustry/core/World.java b/core/src/io/anuke/mindustry/core/World.java index e337a94d1f..50469edacf 100644 --- a/core/src/io/anuke/mindustry/core/World.java +++ b/core/src/io/anuke/mindustry/core/World.java @@ -243,7 +243,7 @@ public class World extends Module{ EntityQuery.resizeTree(0, 0, width * tilesize, height * tilesize); try{ - generator.loadTileData(tiles, MapIO.readTileData(map, true), map.meta.hasOreGen(), 0); + generator.loadTileData(tiles, MapIO.readTileData(map, true), map.meta.hasOreGen(), Mathf.random(99999)); } catch(Exception e){ Log.err(e); if(!headless){ @@ -257,6 +257,8 @@ public class World extends Module{ endMapLoad(); + invalidMap = false; + if(!headless){ if(state.teams.get(players[0].getTeam()).cores.size == 0){ ui.showError("$text.map.nospawn");