mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-12 03:37:27 +07:00
Bugfix
This commit is contained in:
parent
4f40f3c4b2
commit
2804361436
@ -23,8 +23,13 @@ public class MapPlayDialog extends FloatingDialog{
|
||||
public void show(Map map){
|
||||
title.setText(map.name());
|
||||
cont.clearChildren();
|
||||
rules = map.rules();
|
||||
|
||||
//reset to a valid mode after switching to attack
|
||||
if((selectedGamemode == Gamemode.attack && !map.hasEnemyCore()) || (selectedGamemode == Gamemode.pvp && !map.hasOtherCores())){
|
||||
selectedGamemode = Gamemode.survival;
|
||||
}
|
||||
|
||||
rules = map.rules();
|
||||
rules = selectedGamemode.apply(map.rules());
|
||||
|
||||
Table selmode = new Table();
|
||||
|
Loading…
Reference in New Issue
Block a user