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:
parent
0bc4f06636
commit
79da970e18
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user