Prevent translocator loss with full inventory.
This commit is contained in:
parent
a23782fbf2
commit
419fc2f583
1 changed files with 1 additions and 1 deletions
|
@ -414,7 +414,7 @@ local function trans_dig(pos, node, digger)
|
|||
local item = ItemStack(node.name)
|
||||
local data_str = minetest.serialize(data)
|
||||
item:set_metadata(data_str)
|
||||
if not inv:add_item('main', item) then
|
||||
if not inv:room_for_item('main', item) or not inv:add_item('main', item) then
|
||||
return
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue