mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 00:53:44 +01:00
formspec bug fix
This commit is contained in:
parent
77f5c86e54
commit
ba051e45c5
@ -248,7 +248,6 @@ local function start_controller(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
meta:set_string("output", "<press update>")
|
meta:set_string("output", "<press update>")
|
||||||
meta:set_string("formspec", formspec3(meta))
|
|
||||||
meta:set_int("cycletime", 1)
|
meta:set_int("cycletime", 1)
|
||||||
meta:set_int("cyclecount", 0)
|
meta:set_int("cyclecount", 0)
|
||||||
meta:set_int("cpu", 0)
|
meta:set_int("cpu", 0)
|
||||||
@ -256,6 +255,7 @@ local function start_controller(pos)
|
|||||||
if compile(pos, meta, number) then
|
if compile(pos, meta, number) then
|
||||||
meta:set_int("state", tubelib.RUNNING)
|
meta:set_int("state", tubelib.RUNNING)
|
||||||
minetest.get_node_timer(pos):start(1)
|
minetest.get_node_timer(pos):start(1)
|
||||||
|
meta:set_string("formspec", formspec3(meta))
|
||||||
meta:set_string("infotext", "Controller "..number..": running")
|
meta:set_string("infotext", "Controller "..number..": running")
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user