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

@@ -20,7 +20,9 @@ function Wire.setlayer(wire, layer)
end
function Wire.update(wire)
network_send("WU\t" .. (wire.group.state~=0 and "1" or "0") .. "\t" .. wire.objref .. "\n")
if wire.layer~=-1 then
network_send("WU\t" .. (wire.group.state~=0 and "1" or "0") .. "\t" .. wire.objref .. "\n")
end
end
function Wire.setgroup(wire, group)