mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-27 03:37:31 +01:00
Merge pull request 'Smoker and Blast furnace fixes' (#2213) from blast_furnace_fix into master
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/2213 Reviewed-by: cora <cora@noreply.git.minetest.land>
This commit is contained in:
commit
1192fe5450
@ -329,7 +329,7 @@ local function blast_furnace_node_timer(pos, elapsed)
|
|||||||
elseif active then
|
elseif active then
|
||||||
el = math.min(el, fuel_totaltime - fuel_time)
|
el = math.min(el, fuel_totaltime - fuel_time)
|
||||||
-- The furnace is currently active and has enough fuel
|
-- The furnace is currently active and has enough fuel
|
||||||
fuel_time = fuel_time + el
|
fuel_time = (fuel_time + el) *2 --multiply speed of fuel consumption to match proper output
|
||||||
end
|
end
|
||||||
|
|
||||||
-- If there is a cookable item then check if it is ready yet
|
-- If there is a cookable item then check if it is ready yet
|
||||||
@ -414,7 +414,7 @@ end
|
|||||||
|
|
||||||
minetest.register_node("mcl_blast_furnace:blast_furnace", {
|
minetest.register_node("mcl_blast_furnace:blast_furnace", {
|
||||||
description = S("Blast Furnace"),
|
description = S("Blast Furnace"),
|
||||||
_tt_help = S("A blast furnace is a block that smelts ores, raw metals, iron and gold armor and tools, similar to a furnace, but at twice the speed."),
|
_tt_help = S("Smelts ores faster than furnace"),
|
||||||
_doc_items_longdesc = S("Blast Furnaces smelt several items, mainly ores and armor, using a furnace fuel, into something else."),
|
_doc_items_longdesc = S("Blast Furnaces smelt several items, mainly ores and armor, using a furnace fuel, into something else."),
|
||||||
_doc_items_usagehelp =
|
_doc_items_usagehelp =
|
||||||
S([[
|
S([[
|
||||||
|
@ -329,7 +329,7 @@ local function smoker_node_timer(pos, elapsed)
|
|||||||
elseif active then
|
elseif active then
|
||||||
el = math.min(el, fuel_totaltime - fuel_time)
|
el = math.min(el, fuel_totaltime - fuel_time)
|
||||||
-- The furnace is currently active and has enough fuel
|
-- The furnace is currently active and has enough fuel
|
||||||
fuel_time = fuel_time + el
|
fuel_time = ( fuel_time + el ) * 2
|
||||||
end
|
end
|
||||||
|
|
||||||
-- If there is a cookable item then check if it is ready yet
|
-- If there is a cookable item then check if it is ready yet
|
||||||
@ -415,7 +415,7 @@ end
|
|||||||
|
|
||||||
minetest.register_node("mcl_smoker:smoker", {
|
minetest.register_node("mcl_smoker:smoker", {
|
||||||
description = S("Smoker"),
|
description = S("Smoker"),
|
||||||
_tt_help = S("A smoker is a type of furnace that cooks food items, similar to a furnace, but twice as fast."),
|
_tt_help = S("Cooks food faster than furnace"),
|
||||||
_doc_items_longdesc = S("Smokers cook several items, using a furnace fuel, into something else, but twice as fast as a normal furnace"),
|
_doc_items_longdesc = S("Smokers cook several items, using a furnace fuel, into something else, but twice as fast as a normal furnace"),
|
||||||
_doc_items_usagehelp =
|
_doc_items_usagehelp =
|
||||||
S([[
|
S([[
|
||||||
|
Loading…
Reference in New Issue
Block a user