1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-17 21:08:08 +02:00

Fix LuaObject type

This commit is contained in:
RedRafe 2024-12-02 14:26:08 +01:00
parent 0bc4f06636
commit 79da970e18

View File

@ -61,7 +61,7 @@ local function get_valid_force(lua_force_or_name)
return force
end
if type(lua_force_or_name) ~= 'table' or not lua_force_or_name.valid then
if type(lua_force_or_name) ~= 'userdata' or not lua_force_or_name.valid then
return
end