From a731226ac5b4d2d55b597c6231da075a87dafdf1 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Sat, 26 Sep 2015 01:31:12 +0200 Subject: [PATCH] small bugfix for charge items --- stack.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stack.lua b/stack.lua index b1f08d1..ebe4386 100644 --- a/stack.lua +++ b/stack.lua @@ -47,7 +47,7 @@ function find_empty_slot() end end -function find_charge_item_slot(name, charges) +function find_charges_item_slot(name, charges) for slot in item_slots(name) do if item_charges(slot) == charges then return slot @@ -189,7 +189,7 @@ function Aux.stack.start(name, size, callback) if not target_slot then Aux.stack.stop() 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() end end \ No newline at end of file