diff --git a/exp_scenario/module/gui/calculator.lua b/exp_scenario/module/gui/calculator.lua index c80a9c35..9ca3819d 100644 --- a/exp_scenario/module/gui/calculator.lua +++ b/exp_scenario/module/gui/calculator.lua @@ -323,7 +323,7 @@ end --- Value change function Elements.change(event) - event.element.parent.calculator_result_label.caption = event.text == "" and "" or Elements.parse(event.text:lower()) + event.element.parent["calculator/result_label"].caption = event.text == "" and "" or Elements.parse(event.text:lower()) end local e = defines.events