From ada36b41fd0caa361bd85051d7ca7eabc9517e64 Mon Sep 17 00:00:00 2001 From: tenplus1 Date: Fri, 22 Aug 2025 18:05:09 +0100 Subject: [PATCH] Update furnace.lua add above fallback pos --- mods/default/furnace.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/default/furnace.lua b/mods/default/furnace.lua index 5ac70da0..1616af8f 100644 --- a/mods/default/furnace.lua +++ b/mods/default/furnace.lua @@ -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