mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-13 15:14:52 +09:00
Fix nil table key error in factorio 1.1
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user