Prevent translocator loss with full inventory.

This commit is contained in:
Duane 2016-07-04 02:46:07 -05:00
parent a23782fbf2
commit 419fc2f583

View file

@ -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