From 53e6a4e757d181a971f7a40bfa347f860980c3ea Mon Sep 17 00:00:00 2001 From: Andrew Scott <ascott18@gmail.com> Date: Fri, 14 Jun 2024 19:06:42 -0700 Subject: [PATCH] fix: possible error when icon.CustomTex is nil (cause unknown) --- .../Texture_CustomTex.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Components/IconDataProcessorHooks/IconDataProcessorHook_Texture_CustomTex/Texture_CustomTex.lua b/Components/IconDataProcessorHooks/IconDataProcessorHook_Texture_CustomTex/Texture_CustomTex.lua index 74fde141..cf1b8bac 100644 --- a/Components/IconDataProcessorHooks/IconDataProcessorHook_Texture_CustomTex/Texture_CustomTex.lua +++ b/Components/IconDataProcessorHooks/IconDataProcessorHook_Texture_CustomTex/Texture_CustomTex.lua @@ -41,7 +41,7 @@ end) -- varType: item ----------------------- local function UpdateTexture(icon) - local CustomTex = icon.CustomTex:trim() + local CustomTex = icon.CustomTex and icon.CustomTex:trim() or "" icon.CustomTex_OverrideTex = TMW.COMMON.Textures:EvaluateTexturePath(CustomTex, UpdateTexture, icon) -- setting it nil causes the original data processor and the hook to be ran,