Fix nil table key error in factorio 1.1

This commit is contained in:
Cooldude2606 committed 2026-04-23 00:19:20 +01:00
1 parent 8be95c140a
commit 41f8f493aa
1 file changed
+5 -1
@@ -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