mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-04-27 16:00:51 -07:00
Fixed invalid map state not being reset
This commit is contained in:
parent
35e5a669a0
commit
a726ecbdd8
1 changed files with 3 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue