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 -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