From a1336c8d2efcf73643e9c1eb07c71ebbf2aab300 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Wed, 15 May 2024 11:38:08 +0200 Subject: [PATCH] Destroying the instance will break stuff --- media/lua/client/TOC/Controllers/ItemsController.lua | 1 + media/lua/client/TOC/Main.lua | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/media/lua/client/TOC/Controllers/ItemsController.lua b/media/lua/client/TOC/Controllers/ItemsController.lua index 60f2ff1..7b81d88 100644 --- a/media/lua/client/TOC/Controllers/ItemsController.lua +++ b/media/lua/client/TOC/Controllers/ItemsController.lua @@ -17,6 +17,7 @@ ItemsController.Player = {} ---@return number ---@private function ItemsController.Player.GetAmputationTexturesIndex(playerObj, isCicatrized) + -- FIX Broken local textureString = playerObj:getHumanVisual():getSkinTexture() local isHairy = textureString:sub(-1) == "a" diff --git a/media/lua/client/TOC/Main.lua b/media/lua/client/TOC/Main.lua index 55ac0ef..03f53dd 100644 --- a/media/lua/client/TOC/Main.lua +++ b/media/lua/client/TOC/Main.lua @@ -58,8 +58,9 @@ function Main.WipeData(player) -- Let's wipe the instance too just to be sure - local DataController = require("TOC/Controllers/DataController") - DataController.DestroyInstance(username) + -- TODO This can break things I guess + --local DataController = require("TOC/Controllers/DataController") + --DataController.DestroyInstance(username) end