mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-01-11 07:39:39 +07:00
Fixed invalid map state not being reset
This commit is contained in:
parent
35e5a669a0
commit
a726ecbdd8
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user