mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
.
This commit is contained in:
@@ -617,7 +617,11 @@ local function handle_circuit_interfaces()
|
|||||||
if not interface.valid then
|
if not interface.valid then
|
||||||
vlayer_data.entity_interfaces.circuit[index] = nil
|
vlayer_data.entity_interfaces.circuit[index] = nil
|
||||||
else
|
else
|
||||||
local circuit_oc = interface.get_or_create_control_behavior().sections[1]
|
local circuit_oc = interface.get_or_create_control_behavior()
|
||||||
|
if circuit_oc.sections_count == 0 then
|
||||||
|
circuit_oc.add_section()
|
||||||
|
end
|
||||||
|
circuit_oc = circuit_oc[1]
|
||||||
local signal_index = 1
|
local signal_index = 1
|
||||||
local circuit = vlayer.get_circuits()
|
local circuit = vlayer.get_circuits()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user