Be even more conservative about using stackfamily merge logic.

This commit is contained in:
Aaron Suen 2019-08-31 08:02:06 -04:00
parent a570cb51a6
commit 80a2f8277c

View File

@ -7,7 +7,7 @@ local function family(stack)
if stack:is_empty() then return "" end
local name = stack:get_name()
local def = minetest.registered_items[name]
return def and def.stackfamily or (":" .. name)
return def and def.stackfamily or stack:to_string()
end
function nodecore.stack_merge(dest, src)
if dest:is_empty() then return dest:add_item(src) end