Update furnace.lua

add above fallback pos
This commit is contained in:
tenplus1 2025-08-22 18:05:09 +01:00 committed by GitHub
parent ed676d9ee0
commit ada36b41fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -117,7 +117,8 @@ end
local function add_item(inv, pos, item)
local leftover = inv:add_item("dst", item)
if not leftover:is_empty() then
local drop_pos = minetest.find_node_near(pos, 1, {"air"})
local above = vector.new(pos.x, pos.y + 1, pos.z)
local drop_pos = minetest.find_node_near(pos, 1, {"air"}) or above
minetest.item_drop(item, nil, drop_pos)
end
end