1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Fix gui string type (#1455)

This commit is contained in:
RedRafe 2024-11-25 16:05:23 +01:00 committed by GitHub
parent a2a61dbea6
commit bd9560fde8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -78,7 +78,7 @@ end
---@param element LuaGuiElement ---@param element LuaGuiElement
---@param style string|table ---@param style string|table
function Gui.set_style(element, style) function Gui.set_style(element, style)
if type(style) == string then if type(style) == 'string' then
element.style = style element.style = style
else else
local element_style = element.style local element_style = element.style