add various optimizations

This commit is contained in:
Redo0
2021-06-05 17:37:52 -05:00
parent bdcf2b384a
commit 5b8a1ea850
6 changed files with 71 additions and 32 deletions

View File

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