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
@@ -91,7 +91,7 @@ function post_auction(slot, k)
local vendor_price = 0
if aux.account_data.merchant_sell[item_info.item_id] ~= nil then
vendor_price = tonumber(aux.account_data.merchant_sell[item_info.item_id])
elseif ShaguTweaks.SellValueDB[item_info.item_id] ~= nil then
elseif ShaguTweaks and ShaguTweaks.SellValueDB[item_info.item_id] ~= nil then
local charges = 1
if info.max_item_charges(item_info.item_id) ~= nil then
charges=info.max_item_charges(item_info.item_id)