Skip to content

Commit

Permalink
fix(client): Fix linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
TheiLLeniumStudios committed Jun 20, 2022
1 parent 705e952 commit 53625be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/client.lua
Original file line number Diff line number Diff line change
Expand Up @@ -584,8 +584,9 @@ local function SetupStoreZones()
})
storeCombo:onPlayerInOut(function(isPointInside, _, zone)
if isPointInside then
_, zoneName, shopIndex = zone.name:match("([^_]+)_([^_]+)_([^_]+)")
local currentStore = Config.Stores[tonumber(shopIndex)]
local matches = {zone.name:match("([^_]+)_([^_]+)_([^_]+)")}
zoneName = matches[2]
local currentStore = Config.Stores[tonumber(matches[3])]
local jobName = (currentStore.job and PlayerJob.name) or (currentStore.gang and PlayerGang.name)
if jobName == (currentStore.job or currentStore.gang) then
inZone = true
Expand Down

0 comments on commit 53625be

Please sign in to comment.