mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 20:41:11 +01:00
Fix annoying automatic furnace rotation
This commit is contained in:
parent
817368f023
commit
65ceef0eb8
1 changed files with 3 additions and 3 deletions
|
@ -204,7 +204,7 @@ minetest.register_abm({
|
||||||
if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then
|
if meta:get_float("fuel_time") < meta:get_float("fuel_totaltime") then
|
||||||
local percent = math.floor(meta:get_float("fuel_time") /
|
local percent = math.floor(meta:get_float("fuel_time") /
|
||||||
meta:get_float("fuel_totaltime") * 100)
|
meta:get_float("fuel_totaltime") * 100)
|
||||||
minetest.swap_node(pos, { name = "mcl_furnaces:furnace_active" })
|
minetest.swap_node(pos, { name = "mcl_furnaces:furnace_active", param = node.param, param2 = node.param2 })
|
||||||
meta:set_string("formspec",
|
meta:set_string("formspec",
|
||||||
"size[9,8.75]"..
|
"size[9,8.75]"..
|
||||||
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_furnace.png]"..
|
"background[-0.19,-0.25;9.41,9.49;crafting_formspec_bg.png^crafting_inventory_furnace.png]"..
|
||||||
|
@ -241,14 +241,14 @@ minetest.register_abm({
|
||||||
end
|
end
|
||||||
|
|
||||||
if fuel.time <= 0 then
|
if fuel.time <= 0 then
|
||||||
minetest.swap_node(pos, { name = "mcl_furnaces:furnace" })
|
minetest.swap_node(pos, { name = "mcl_furnaces:furnace", param = node.param, param2 = node.param2 })
|
||||||
meta:set_string("formspec", furnace_inactive_formspec)
|
meta:set_string("formspec", furnace_inactive_formspec)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
if cooked.item:is_empty() then
|
if cooked.item:is_empty() then
|
||||||
if was_active then
|
if was_active then
|
||||||
minetest.swap_node(pos, { name = "mcl_furnaces:furnace" })
|
minetest.swap_node(pos, { name = "mcl_furnaces:furnace", param = node.param, param2 = node.param2 })
|
||||||
meta:set_string("formspec", furnace_inactive_formspec)
|
meta:set_string("formspec", furnace_inactive_formspec)
|
||||||
end
|
end
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue