From d462cb9a0d7037e9a0050d322aed3db2769f2333 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 8 Aug 2016 22:06:39 +0200 Subject: [PATCH] bugfix --- core.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core.lua b/core.lua index bcfe70f..40ee10e 100644 --- a/core.lua +++ b/core.lua @@ -265,7 +265,7 @@ function private.SetItemRef(...) end function private.PickupContainerItem(...) - if m.modified() or not m.index(m.active_tab, 'module', 1, 'PICKUP_ITEM') then + if m.modified() or not m.index(m.active_tab(), 'module', 1, 'PICKUP_ITEM') then return m.orig.PickupContainerItem(unpack(arg)) end local item_info = m.info.container_item(arg[1], arg[2]) @@ -275,7 +275,7 @@ function private.PickupContainerItem(...) end function private.UseContainerItem(...) - if m.modified() or not m.index(m.active_tab, 'module', 1, 'USE_ITEM') then + if m.modified() or not m.index(m.active_tab(), 'module', 1, 'USE_ITEM') then return m.orig.UseContainerItem(unpack(arg)) end local item_info = m.info.container_item(arg[1], arg[2])