Remove chat message about spinner return values.
due [08-11-15 - 09:37]
Remove chat message about spinner return values.
It only seems to return false when upgrading stacked items, and in those
instances that's because the spinner is already set to the maximum.
diff --git a/AutoMaxImprovement.lua b/AutoMaxImprovement.lua
index 5272caf..6a2f7e3 100644
--- a/AutoMaxImprovement.lua
+++ b/AutoMaxImprovement.lua
@@ -13,9 +13,8 @@ function AutoMaxImprovement:Initialize()
if row then
local max = SI:FindMaxBoostersToApply()
if max then
- if not SI.spinner:SetValue(max) then
- CHAT_SYSTEM:AddMessage("AutoMaxImprovement couldn't set boosters to " .. max .. "!")
- end
+ SI.spinner:SetValue(max)
+ -- we don't care about the return value, usually it occurs when upgraded stacked items
end
end
end