From 53625bea10646f238c0b2c9588248ae92c023257 Mon Sep 17 00:00:00 2001 From: TheiLLeniumStudios <104288623+TheiLLeniumStudios@users.noreply.github.com> Date: Mon, 20 Jun 2022 19:05:54 +0000 Subject: [PATCH] fix(client): Fix linting issues --- client/client.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/client.lua b/client/client.lua index 8836e1a..4ec90dc 100644 --- a/client/client.lua +++ b/client/client.lua @@ -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