From 48d75e9ca512a185c10fe593895d7c5531ee131c Mon Sep 17 00:00:00 2001 From: Langbart <92653266+LangLangBart@users.noreply.github.com> Date: Fri, 19 Nov 2021 17:39:03 +0100 Subject: [PATCH] Fix #55 and bumb version to 2.0.1 --- mod.json | 2 +- simulation/components/GuiInterface~boongui.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mod.json b/mod.json index 1ab771b3..2e417d83 100644 --- a/mod.json +++ b/mod.json @@ -1,6 +1,6 @@ { "name": "boongui", - "version": "2.0.0", + "version": "2.0.1", "label": "boonGUI", "description": "Larger buttons, colorful fruits, increased projectiles and cheat codes added to the manual. Enhance the observer experience with a stats overlay and stats in the HUD.", "ignoreInCompatibilityChecks": true, diff --git a/simulation/components/GuiInterface~boongui.js b/simulation/components/GuiInterface~boongui.js index 1ffb539d..7e3cb8fa 100644 --- a/simulation/components/GuiInterface~boongui.js +++ b/simulation/components/GuiInterface~boongui.js @@ -199,7 +199,7 @@ GuiInterface.prototype.boongui_GetOverlay = function (_, { g_IsObserver, g_Viewe let phase = ''; if (cmpTechnologyManager) { for (const _phase of boongui_phases) { - if (cmpTechnologyManager.IsTechnologyResearched(`phase_${phase}`)) { + if (cmpTechnologyManager.IsTechnologyResearched(`phase_${_phase}`)) { phase = _phase; break; }