From 419fc2f583c2673502dbf35638f24f053e947725 Mon Sep 17 00:00:00 2001 From: Duane Date: Mon, 4 Jul 2016 02:46:07 -0500 Subject: [PATCH] Prevent translocator loss with full inventory. --- tesseract.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tesseract.lua b/tesseract.lua index dee55a4..4f4b535 100644 --- a/tesseract.lua +++ b/tesseract.lua @@ -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