add rainbow wires

This commit is contained in:
Redo0
2021-06-07 15:38:25 -05:00
parent bfa1190cfe
commit 7109dd70a2
3 changed files with 9 additions and 2 deletions

View File

@@ -100,6 +100,8 @@ function network_update()
local wire = Simulation.getwirebyref(sim, tonumber(data[i+1]))
if wire ~= nil then
Wire.setlayer(wire, tonumber(data[i+2]))
else
error("Setlayer: no wire for objref "..tonumber(data[i+1]))
end
i = i + 2