small bugfix for charge items
This commit is contained in:
@@ -47,7 +47,7 @@ function find_empty_slot()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function find_charge_item_slot(name, charges)
|
function find_charges_item_slot(name, charges)
|
||||||
for slot in item_slots(name) do
|
for slot in item_slots(name) do
|
||||||
if item_charges(slot) == charges then
|
if item_charges(slot) == charges then
|
||||||
return slot
|
return slot
|
||||||
@@ -189,7 +189,7 @@ function Aux.stack.start(name, size, callback)
|
|||||||
if not target_slot then
|
if not target_slot then
|
||||||
Aux.stack.stop()
|
Aux.stack.stop()
|
||||||
elseif item_charges(target_slot) then
|
elseif item_charges(target_slot) then
|
||||||
state.target_slot = find_charges_item(name, size)
|
state.target_slot = find_charges_item_slot(name, size)
|
||||||
Aux.stack.stop()
|
Aux.stack.stop()
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user