Update mods/default/furnace.lua

This commit is contained in:
sfan5 2025-08-22 20:00:14 +02:00 committed by GitHub
parent ada36b41fd
commit 460f3c2379
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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