Fix fast cook check bug affecting glass quench
It was checking the craft before actually placing the node, causing the crude glass recipe to complete when molten glass flowed into a mold with water below, then it got replaced by the source node, then it re-quenched to chromatic on the next ABM pass. Now it actually quenches directly to chroma immediately like it should.
This commit is contained in:
parent
8683143a32
commit
005325bc32
@ -130,12 +130,11 @@ for fn, param in pairs({
|
||||
}) do
|
||||
local func = minetest[fn]
|
||||
minetest[fn] = function(pos, pn, ...)
|
||||
local node = param and pn or minetest.get_node(pos)
|
||||
if cooknames[node.name] then
|
||||
nodecore.log("action", "fast node cook check of "
|
||||
.. node.name .. " at " .. minetest.pos_to_string(pos))
|
||||
cookcheck(pos, node)
|
||||
local function helper(...)
|
||||
local node = param and pn or minetest.get_node(pos)
|
||||
if cooknames[node.name] then cookcheck(pos, node) end
|
||||
return ...
|
||||
end
|
||||
return func(pos, pn, ...)
|
||||
return helper(func(pos, pn, ...))
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user