update logic functions to remove metatable OOP
This commit is contained in:
@@ -2,9 +2,9 @@
|
||||
return function(gate)
|
||||
if #gate.queueBits~=0 then
|
||||
local bit = table.remove(gate.queueBits, #gate.queueBits)
|
||||
gate.ports[1]:setstate(bit)
|
||||
gate:queue(1)
|
||||
Gate.setportstate(gate, 1, bit)
|
||||
Gate.queue(gate, 1)
|
||||
else
|
||||
gate.ports[1]:setstate(false)
|
||||
Gate.setportstate(gate, 1, false)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user