From 2592795ea1bc78fc7f03039938b5d597f4482f66 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Fri, 18 Feb 2022 16:00:16 -0600 Subject: [PATCH] Rename interior templates to interiors --- scripts/server/business.js | 8 ++++---- scripts/server/house.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/scripts/server/business.js b/scripts/server/business.js index 85bf3bca..e68a0722 100644 --- a/scripts/server/business.js +++ b/scripts/server/business.js @@ -720,9 +720,9 @@ function setBusinessInteriorTypeCommand(command, params, client) { return false; } - if(isNull(getGameConfig().interiorTemplates[getServerGame()][typeParam])) { + if(isNull(getGameConfig().interiors[getServerGame()][typeParam])) { messagePlayerError(client, "Invalid interior type! Use an interior type name"); - let interiorTypesList = Object.keys(getGameConfig().interiorTemplates[getServerGame()]); + let interiorTypesList = Object.keys(getGameConfig().interiors[getServerGame()]); let chunkedList = splitArrayIntoChunks(interiorTypesList, 10); messagePlayerNormal(client, makeChatBoxSectionHeader(getLocaleString(client, "HeaderInteriorTypes"))); @@ -732,8 +732,8 @@ function setBusinessInteriorTypeCommand(command, params, client) { return false; } - getBusinessData(businessId).exitPosition = getGameConfig().interiorTemplates[getServerGame()][typeParam][0]; - getBusinessData(businessId).exitInterior = getGameConfig().interiorTemplates[getServerGame()][typeParam][1]; + getBusinessData(businessId).exitPosition = getGameConfig().interiors[getServerGame()][typeParam][0]; + getBusinessData(businessId).exitInterior = getGameConfig().interiors[getServerGame()][typeParam][1]; getBusinessData(businessId).exitDimension = getBusinessData(businessId).databaseId+getGlobalConfig().businessDimensionStart; getBusinessData(businessId).exitPickupModel = getGameConfig().pickupModels[getServerGame()].Exit; getBusinessData(businessId).hasInterior = true; diff --git a/scripts/server/house.js b/scripts/server/house.js index d5aa48cc..cb673743 100644 --- a/scripts/server/house.js +++ b/scripts/server/house.js @@ -401,9 +401,9 @@ function setHouseInteriorTypeCommand(command, params, client) { return false; } - if(isNull(getGameConfig().interiorTemplates[getServerGame()][typeParam])) { + if(isNull(getGameConfig().interiors[getServerGame()][typeParam])) { messagePlayerError(client, "Invalid interior type! Use an interior type name"); - let interiorTypesList = Object.keys(getGameConfig().interiorTemplates[getServerGame()]); + let interiorTypesList = Object.keys(getGameConfig().interiors[getServerGame()]); let chunkedList = splitArrayIntoChunks(interiorTypesList, 10); messagePlayerNormal(client, makeChatBoxSectionHeader("InteriorTypes")); @@ -413,8 +413,8 @@ function setHouseInteriorTypeCommand(command, params, client) { return false; } - getHouseData(houseId).exitPosition = getGameConfig().interiorTemplates[getServerGame()][typeParam][0]; - getHouseData(houseId).exitInterior = getGameConfig().interiorTemplates[getServerGame()][typeParam][1]; + getHouseData(houseId).exitPosition = getGameConfig().interiors[getServerGame()][typeParam][0]; + getHouseData(houseId).exitInterior = getGameConfig().interiors[getServerGame()][typeParam][1]; getHouseData(houseId).exitDimension = getHouseData(houseId).databaseId+getGlobalConfig().houseDimensionStart; getHouseData(houseId).exitPickupModel = getGameConfig().pickupModels[getServerGame()].Exit; getHouseData(houseId).hasInterior = true;