Fix being able to open android research tree more than once

This commit is contained in:
DBotThePony 2022-09-06 08:15:25 +07:00
parent c3e1300cd1
commit d00338303e
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -573,6 +573,12 @@ class AndroidStationScreen constructor(p_97741_: AndroidStationMenu, p_97742_: I
var hoveredResearch: AndroidResearch? = null
private fun openResearchTree() {
if (research?.isRemoved == false) {
research!!.toScreenCenter()
popup(research!!)
return
}
val window = minecraft!!.window
research = FramePanel(this, null, 0f, 0f, window.guiScaledWidth * 0.8f, window.guiScaledHeight * 0.8f, TranslatableComponent("otm.gui.android_research"))