mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 09:03:46 +01:00
controller event bugfix
This commit is contained in:
parent
f2876b191f
commit
9e12dc1ae7
@ -525,7 +525,7 @@ minetest.register_craft({
|
|||||||
-- write inputs from remote nodes
|
-- write inputs from remote nodes
|
||||||
local function set_input(pos, number, input, val)
|
local function set_input(pos, number, input, val)
|
||||||
if input and M(pos):get_int("state") == tubelib.RUNNING then
|
if input and M(pos):get_int("state") == tubelib.RUNNING then
|
||||||
if Cache[number] and Cache[number].inputs then
|
if (Cache[number] or compile(pos, M(pos), number)) and Cache[number].inputs then
|
||||||
if input == "msg" then
|
if input == "msg" then
|
||||||
if #Cache[number].inputs["msg"] < 10 then
|
if #Cache[number].inputs["msg"] < 10 then
|
||||||
table.insert(Cache[number].inputs["msg"], val)
|
table.insert(Cache[number].inputs["msg"], val)
|
||||||
|
@ -69,7 +69,7 @@ function tubelib.state(running)
|
|||||||
elseif running == -2 then
|
elseif running == -2 then
|
||||||
return tubelib.BLOCKED
|
return tubelib.BLOCKED
|
||||||
else
|
else
|
||||||
return tubelib.FAULT
|
return tubelib.STOPPED
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user