From 1f069ae70fd45407c37bb0f8dd3a20470ba42fcf Mon Sep 17 00:00:00 2001 From: crabman77 Date: Sat, 15 Aug 2015 19:08:43 +0200 Subject: [PATCH] fix bug invtweak not refill if object is readded in inv if placenode is interrupted --- mods/invtweak/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/invtweak/init.lua b/mods/invtweak/init.lua index 7cffb557..8a86c06a 100755 --- a/mods/invtweak/init.lua +++ b/mods/invtweak/init.lua @@ -193,7 +193,7 @@ end function refill(player, stck_name, index) local inv = player:get_inventory() for i,stack in ipairs(inv:get_list("main")) do - if stack:get_name() == stck_name then + if i ~= index and stack:get_name() == stck_name then inv:set_stack("main", index, stack) stack:clear() inv:set_stack("main", i, stack)