some bugfixes

This commit is contained in:
Manuel Simon Hirsig
2015-10-10 14:49:53 +02:00
parent b9475e4832
commit 6216e8b08d
3 changed files with 16 additions and 17 deletions
+6 -8
View File
@@ -5,20 +5,18 @@
## SavedVariables: auxSellEntries
core.xml
control.xml
util.lua
sell.xml
buy.xml
scan.xml
stack.xml
post.xml
scan.lua
stack.lua
post.lua
info.xml
util.lua
completion.xml
list.xml
options.xml
about.xml
list.xml
completion.xml
+4 -4
View File
@@ -32,14 +32,14 @@ function process()
if stack_slot then
post_auction(stack_slot, function()
state.posted = state.posted + 1
process()
return process()
end)
else
stop()
return stop()
end
end)
else
stop()
return stop()
end
end
@@ -97,6 +97,6 @@ function Aux.post.start(name, stack_size, duration, bid, buyout, count, callback
callback = callback,
}
process()
return process()
end)
end
+6 -5
View File
@@ -176,7 +176,8 @@ end
function Aux.stack.start(name, size, callback)
Aux.control.on_next_update(function()
stop()
stop()
local slots = item_slots(name)
local target_slot = slots()
@@ -188,12 +189,12 @@ function Aux.stack.start(name, size, callback)
}
if not target_slot then
stop()
return stop()
elseif item_charges(target_slot) then
state.target_slot = find_charges_item_slot(name, size)
stop()
return stop()
else
return process()
end
process()
end)
end