Skip to content

Commit

Permalink
fix(server/shops): incorrect config referenced
Browse files Browse the repository at this point in the history
The variable should still be "shared.qtarget" for now; will be changed after
crafting is merged.
  • Loading branch information
thelindat committed Nov 11, 2022
1 parent 30d7910 commit 55878bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/shops/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ local function createShop(shopName, shopDetails)
items = table.clone(shopDetails.inventory),
slots = #shopDetails.inventory,
type = 'shop',
coords = shared.target and shopDetails.targets?[i]?.loc or shopLocations[i],
distance = shared.target and shopDetails.targets?[i]?.distance,
coords = shared.qtarget and shopDetails.targets?[i]?.loc or shopLocations[i],
distance = shared.qtarget and shopDetails.targets?[i]?.distance,
}

for j = 1, Shops[shopName][i].slots do
Expand Down

0 comments on commit 55878bf

Please sign in to comment.