mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-08-29 08:18:24 -04:00
Update mods/default/furnace.lua
This commit is contained in:
parent
ada36b41fd
commit
460f3c2379
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ end
|
||||||
local function add_item(inv, pos, item)
|
local function add_item(inv, pos, item)
|
||||||
local leftover = inv:add_item("dst", item)
|
local leftover = inv:add_item("dst", item)
|
||||||
if not leftover:is_empty() then
|
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
|
local drop_pos = minetest.find_node_near(pos, 1, {"air"}) or above
|
||||||
minetest.item_drop(item, nil, drop_pos)
|
minetest.item_drop(item, nil, drop_pos)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue