From 838e926e2fa5f42f359f106ed1363b7af4580e99 Mon Sep 17 00:00:00 2001 From: IrcDirk Date: Sun, 17 Dec 2023 15:06:04 +0100 Subject: [PATCH] Fixing some taint errors. --- Carbonite.Quests/NxQuest.lua | 2 +- Carbonite/NxUI.lua | 8 +- Carbonite/Taintless.xml | 158 +++++++++++++++++++++++++++-------- 3 files changed, 131 insertions(+), 37 deletions(-) diff --git a/Carbonite.Quests/NxQuest.lua b/Carbonite.Quests/NxQuest.lua index f2b437b..2527ae3 100644 --- a/Carbonite.Quests/NxQuest.lua +++ b/Carbonite.Quests/NxQuest.lua @@ -6857,7 +6857,7 @@ function CarboniteQuest:OnQuestUpdate (event, ...) end --hooksecurefunc("QuestWatch_Update", function (...) WatchFrame:Hide(); end); -hooksecurefunc("WatchFrame_Update", function (...) WatchFrame:Hide(); end); +hooksecurefunc("WatchFrame_Update", function (...) pcall(function () WatchFrame:Hide(); end); end); Nx.Quest.TrackedAchievements = {} diff --git a/Carbonite/NxUI.lua b/Carbonite/NxUI.lua index 82e42e4..bafea97 100644 --- a/Carbonite/NxUI.lua +++ b/Carbonite/NxUI.lua @@ -5536,9 +5536,11 @@ function Nx.List:Resize (width, height) width = max (self.MinW, width) height = max (self.MinH, height) - f:SetWidth (width) - f:SetHeight (height) - + pcall(function() + f:SetWidth (width) + f:SetHeight (height) + end) + local sfrm = self.SelFrm sfrm:SetWidth (width - 10) diff --git a/Carbonite/Taintless.xml b/Carbonite/Taintless.xml index 7b02fab..1464301 100644 --- a/Carbonite/Taintless.xml +++ b/Carbonite/Taintless.xml @@ -1,6 +1,6 @@ \ No newline at end of file