furnace bugfix and basalt recipe added

This commit is contained in:
Joachim Stolberg 2019-06-27 20:12:18 +02:00
parent d7ecb4818e
commit 8df777c43d
3 changed files with 8 additions and 2 deletions

View File

@ -62,7 +62,7 @@ local function node_timer(pos, elapsed)
crd.State:nopower(pos, mem)
end
elseif state == techage.STANDBY then
if not power_available(pos, 0) then
if crd.power_consumption > 0 and not power_available(pos) then
crd.State:nopower(pos, mem)
end
end

View File

@ -51,7 +51,7 @@ local function formspec(self, pos, mem)
"list[context;dst;3,0;2,2;]"..
"label[6,0;"..I("Outp")..": "..idx.."/"..num.."]"..
"item_image_button[6.5,0.5;1,1;"..output..";b1;]"..
"item_image_button[6.5,0.5;1,1;"..(output or "")..";b1;]"..
"button[6,1.5;1,1;priv;<<]"..
"button[7,1.5;1,1;next;>>]"..

View File

@ -234,6 +234,12 @@ minetest.register_craft({
}
})
minetest.register_craft({
type = "cooking",
output = "techage:basalt_stone",
recipe = "techage:basalt_cobble",
})
techage.add_grinder_recipe({input="techage:basalt_stone", output="techage:basalt_gravel"})
techage.add_grinder_recipe({input="techage:basalt_cobble", output="techage:basalt_gravel"})
techage.add_grinder_recipe({input="techage:basalt_gravel", output="default:clay"})