mirror of
https://github.com/minefaco/stripped_tree.git
synced 2025-01-22 05:51:25 +01:00
drop bark when inv is full.
This commit is contained in:
parent
6b8e0f7c50
commit
4fb86eeeb1
2
init.lua
2
init.lua
@ -71,7 +71,7 @@ for _, axe_name in ipairs(axe_types) do
|
||||
if inv:room_for_item("main", "default:tree_bark") then
|
||||
inv:add_item("main", {name="default:tree_bark"})
|
||||
else
|
||||
--drop item
|
||||
minetest.add_item(pos, "default:tree_bark")
|
||||
end
|
||||
end
|
||||
return itemstack
|
||||
|
Loading…
Reference in New Issue
Block a user