mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2026-11-17 22:33:13 +09:00
.
This commit is contained in:
1 parent
549319b82a
commit
5ab0ac0e62
1 file changed
+1
@@ -257,6 +257,7 @@ local function surface_index_from_element(controls)
|
||||
local surface = 0
|
||||
if element then
|
||||
local surface_name = element.items[element.selected_index]
|
||||
---@diagnostic disable-next-line: undefined-field
|
||||
local s = game.surfaces[surface_name]
|
||||
if surface_name and s then
|
||||
surface = s.index
|
||||
|
||||
Reference in new issue
Block a user