diff --git a/post.lua b/post.lua
index 9c4ead7..0953fb7 100644
--- a/post.lua
+++ b/post.lua
@@ -1,4 +1,6 @@
-Aux.post = {}
+Aux.post = {
+ orig = {}
+}
local state
@@ -39,8 +41,6 @@ function Aux.post.stop()
local posted = state.posted
state = nil
- PickupContainerItem = Aux.stack.orig.PickupContainerItem
- SplitContainerItem = Aux.stack.orig.SplitContainerItem
if callback then
callback(posted)
@@ -67,9 +67,6 @@ function Aux.post.start(name, stack_size, duration, bid, buyout, count, callback
ClickAuctionSellItemButton()
ClearCursor()
- PickupContainerItem = function() end
- SplitContainerItem = function() end
-
state = {
name = name,
stack_size = stack_size,
diff --git a/stack.lua b/stack.lua
index dd2fc22..5fcad19 100644
--- a/stack.lua
+++ b/stack.lua
@@ -1,6 +1,4 @@
-Aux.stack = {
- orig = {},
-}
+Aux.stack = {}
local state
@@ -71,8 +69,8 @@ function move_item(from_slot, to_slot, amount)
state.processing = 3
ClearCursor()
- Aux.stack.orig.SplitContainerItem(from_slot.bag, from_slot.bag_slot, amount)
- Aux.stack.orig.PickupContainerItem(to_slot.bag, to_slot.bag_slot)
+ SplitContainerItem(from_slot.bag, from_slot.bag_slot, amount)
+ PickupContainerItem(to_slot.bag, to_slot.bag_slot)
ClearCursor()
end
end
@@ -155,8 +153,6 @@ function Aux.stack.stop()
local callback = state.callback
state = nil
- PickupContainerItem = Aux.stack.orig.PickupContainerItem
- SplitContainerItem = Aux.stack.orig.SplitContainerItem
if callback then
callback(slot)
@@ -167,9 +163,6 @@ end
function Aux.stack.start(name, size, callback)
Aux.stack.stop()
- PickupContainerItem = function() end
- SplitContainerItem = function() end
-
local slots = item_slots(name)
local target_slot = slots()
diff --git a/stack.xml b/stack.xml
index 6cc7350..85a2a95 100644
--- a/stack.xml
+++ b/stack.xml
@@ -4,8 +4,6 @@
- Aux.stack.orig.PickupContainerItem = PickupContainerItem
- Aux.stack.orig.SplitContainerItem = SplitContainerItem
this:RegisterEvent('ITEM_LOCK_CHANGED')
diff --git a/util.lua b/util.lua
index 8026f2b..32fc559 100644
--- a/util.lua
+++ b/util.lua
@@ -6,4 +6,7 @@ function Aux.util.iter(array)
local _, value = with_index
return value
end
+end
+
+function Aux.util.dummy()
end
\ No newline at end of file