default active infotexts
This commit is contained in:
parent
803ecc59c6
commit
e1a570d245
@ -248,6 +248,9 @@ function holostorage.network.register_abm_controller(name)
|
||||
end
|
||||
if nodedef and nodedef.holostorage_run then
|
||||
nodedef.holostorage_run(pos2, node2, pos)
|
||||
elseif nodedef then
|
||||
local imeta = minetest.get_meta(pos2)
|
||||
imeta:set_string("infotext", ("%s Active"):format(nodedef.description))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -132,12 +132,10 @@ local function run_solderer(pos, _, controller)
|
||||
while true do
|
||||
local result = holostorage.solderer.get_recipe(inv:get_list("src"))
|
||||
if not result then
|
||||
local swap = holostorage.helpers.swap_node(pos, machine_node)
|
||||
if swap then
|
||||
holostorage.helpers.swap_node(pos, machine_node)
|
||||
meta:set_string("infotext", "Solderer Idle")
|
||||
meta:set_string("formspec", get_formspec())
|
||||
meta:set_int("src_time", 0)
|
||||
end
|
||||
return
|
||||
end
|
||||
meta:set_int("src_time", meta:get_int("src_time") + round(machine_speed * 10))
|
||||
|
Loading…
Reference in New Issue
Block a user