From 43b366b467aacbb7c85662a4e9dcb0c8dae43be2 Mon Sep 17 00:00:00 2001 From: ZioPao Date: Thu, 28 Mar 2024 09:55:24 +0100 Subject: [PATCH] cleaning compat --- media/lua/client/TOC/Compat.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/media/lua/client/TOC/Compat.lua b/media/lua/client/TOC/Compat.lua index af72154..8258cb0 100644 --- a/media/lua/client/TOC/Compat.lua +++ b/media/lua/client/TOC/Compat.lua @@ -2,19 +2,23 @@ local function HandleModCompatibility() - --* BRUTAL HANDS -- * - --[[ - Brutal hands has a TOC_COMPAT but its check is wrong and uses an old API. - ]] + local activatedMods = getActivatedMods() TOC_DEBUG.print("Checking for mods compatibility") + --[[ + Brutal hands has a TOC_COMPAT but its check is wrong and uses an old API. + ]] if activatedMods:contains('BrutalHandwork') then TOC_DEBUG.print("found BrutalHandwork, activating compat module") BrutalHands = BrutalHands or {} BrutalHands.TOC = require("TOC/API") end + + --[[ + Was handled inside old TOC + ]] if activatedMods:contains('FancyHandwork') then TOC_DEBUG.print("found FancyHandwork, activating compat module") @@ -28,11 +32,7 @@ local function HandleModCompatibility() return false end end - - - end - end Events.OnGameStart.Add(HandleModCompatibility)