mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 14:32:06 -08:00
Fixed #9260
This commit is contained in:
parent
66b8a6f939
commit
9bf23bfcc8
1 changed files with 3 additions and 8 deletions
|
|
@ -111,16 +111,10 @@ public class GameService{
|
|||
completeSerpulo.complete();
|
||||
}
|
||||
|
||||
if(mods.list().size > 0){
|
||||
if(mods != null && mods.list().size > 0){
|
||||
installMod.complete();
|
||||
}
|
||||
|
||||
Events.on(ClientLoadEvent.class, e -> {
|
||||
if(mods.list().size > 0){
|
||||
installMod.complete();
|
||||
}
|
||||
});
|
||||
|
||||
if(Core.bundle.get("yes").equals("router")){
|
||||
routerLanguage.complete();
|
||||
}
|
||||
|
|
@ -459,7 +453,8 @@ public class GameService{
|
|||
//check unlocked stuff on load as well
|
||||
Events.on(ResearchEvent.class, e -> checkUnlocks.run());
|
||||
Events.on(UnlockEvent.class, e -> checkUnlocks.run());
|
||||
Events.on(ClientLoadEvent.class, e -> checkUnlocks.run());
|
||||
|
||||
checkUnlocks.run();
|
||||
|
||||
Events.on(WinEvent.class, e -> {
|
||||
if(state.rules.pvp){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue