Skip to content

Commit

Permalink
replace invalid and incorrect error message with valid and correct er…
Browse files Browse the repository at this point in the history
…ror message when queued equip action is broken
  • Loading branch information
AlexFolland committed Jul 25, 2024
1 parent a7d69b6 commit 984a15e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions AutoGear.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4676,9 +4676,11 @@ function AutoGearMain()
and curAction.info and curAction.info.item and curAction.info.item.GetItemLocation and curAction.info.item:HasItemLocation() then
local itemLocation = curAction.info.item:GetItemLocation()
curAction.container, curAction.slot = itemLocation:GetBagAndSlot()
else
AutoGearPrint("Error: AutoGearActionQueue current action has either no container or no slot!", 3)
-- table.remove(AutoGearActionQueue, i)
end
if (not curAction.container) or (not curAction.slot) then
AutoGearBrokenAction = curAction
AutoGearPrint("Error: The current equip action has either no container or no slot! This should never happen, so it must be a bug. It's now been saved to global variable AutoGearBrokenAction, so try \"/dump AutoGearBrokenAction\" and send the output to the AutoGear author.",0)
table.remove(AutoGearActionQueue, i)
end
PickupContainerItem(curAction.container, curAction.slot)
EquipCursorItem(curAction.replaceSlot)
Expand Down

0 comments on commit 984a15e

Please sign in to comment.