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 item = ItemStack(node.name)
|
||||||
local data_str = minetest.serialize(data)
|
local data_str = minetest.serialize(data)
|
||||||
item:set_metadata(data_str)
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue