diff --git a/plugins/inventory_sync/module/restore_position.lua b/plugins/inventory_sync/module/restore_position.lua index c0cf479b..f2513133 100644 --- a/plugins/inventory_sync/module/restore_position.lua +++ b/plugins/inventory_sync/module/restore_position.lua @@ -4,9 +4,13 @@ local can_enter_vehicle = { [defines.controllers.character] = true, [defines.controllers.god] = true, [defines.controllers.editor] = true, - [defines.controllers.remote] = true, } +if defines.controllers.remote then + -- Does not exist in 1.1, so we need this nil check + can_enter_vehicle[defines.controllers.remote] = true +end + local v2_surface_platform = compat.version_ge("2.0.0") --- @param player LuaPlayer