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
+2 -2
View File
@@ -186,7 +186,7 @@ M.filters = {
validator = function(amount)
return function(auction_record)
local vendor_price = info.merchant_info(auction_record.item_id)
if not vendor_price then
if not vendor_price and ShaguTweaks then
vendor_price = ShaguTweaks.SellValueDB[auction_record.item_id]
if vendor_price then
local charges = 1
@@ -206,7 +206,7 @@ M.filters = {
validator = function(amount)
return function(auction_record)
local vendor_price = info.merchant_info(auction_record.item_id)
if not vendor_price then
if not vendor_price and ShaguTweaks then
vendor_price = ShaguTweaks.SellValueDB[auction_record.item_id]
if vendor_price then
local charges = 1