Fixed #8184
This commit is contained in:
@@ -383,7 +383,12 @@ public class Logic implements ApplicationListener{
|
||||
public static void researched(Content content){
|
||||
if(!(content instanceof UnlockableContent u)) return;
|
||||
|
||||
boolean was = !u.unlockedNow();
|
||||
state.rules.researched.add(u.name);
|
||||
|
||||
if(!was){
|
||||
Events.fire(new UnlockEvent(u));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -177,6 +177,15 @@ public class ResearchDialog extends BaseDialog{
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public Dialog show(){
|
||||
if(net.client()){
|
||||
ui.showInfo("@research.multiplayer");
|
||||
return this;
|
||||
}
|
||||
return show(Core.scene);
|
||||
}
|
||||
|
||||
void checkMargin(){
|
||||
if(Core.graphics.isPortrait() && showTechSelect){
|
||||
itemDisplay.marginTop(60f);
|
||||
|
||||
Reference in New Issue
Block a user