mirror of
https://github.com/joe7575/techpack.git
synced 2025-02-18 10:43:46 +01:00
formspec bug fix
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user