bugfix shagutweaks not optional

if shagu tweals is not installed then properly dont try to use its values for unnown vendor prices
This commit is contained in:
geojak
2022-04-03 22:49:06 +02:00
committed by GitHub
parent decffd1991
commit 0ab1cd8f62
4 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ function M.extend_tooltip(tooltip, link, quantity)
end
if settings.merchant_sell then
local price = info.merchant_info(item_id)
if price == nil and ShaguTweaks.SellValueDB[item_id] ~= nil then
if price == nil and ShaguTweaks and ShaguTweaks.SellValueDB[item_id] ~= nil then
local charges = 1
if info.max_item_charges(item_id) ~= nil then
charges=info.max_item_charges(item_id)