diff --git a/features/force_control.lua b/features/force_control.lua index 1f0835c1..c8dafedc 100644 --- a/features/force_control.lua +++ b/features/force_control.lua @@ -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