From c02b26ab0ce664f71568c3ef460dd5aed1cddca1 Mon Sep 17 00:00:00 2001 From: Manason Date: Tue, 7 Nov 2023 21:31:47 -0800 Subject: [PATCH] refactor(config): sell location using vec3 for zone dimensions --- client/main.lua | 2 +- config.lua | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/client/main.lua b/client/main.lua index eb8ad2f..4764719 100644 --- a/client/main.lua +++ b/client/main.lua @@ -194,7 +194,7 @@ local function createSeller() lib.zones.box({ coords = current.coords.xyz, rotation = current.coords.w, - size = vec3(current.zoneOptions.length, current.zoneOptions.width, 3), + size = current.zoneDimensions, onEnter = function() lib.showTextUI(Lang:t("info.sell_coral_dt")) end, diff --git a/config.lua b/config.lua index c83ee47..a56e19d 100644 --- a/config.lua +++ b/config.lua @@ -217,11 +217,8 @@ Config.PriceModifiers = { } Config.SellLocations = { { - coords = vector4(-1684.13, -1068.91, 13.15, 100.0), + coords = vec4(-1684.13, -1068.91, 13.15, 100.0), model = 'a_m_m_salton_01', - zoneOptions = { -- Only used when not using the target - length = 3, - width = 3 - } + zoneDimensions = vec3(3, 3, 3), -- Only used when not using the target } }