cleaning compat
This commit is contained in:
@@ -2,19 +2,23 @@
|
|||||||
|
|
||||||
local function HandleModCompatibility()
|
local function HandleModCompatibility()
|
||||||
|
|
||||||
--* BRUTAL HANDS -- *
|
|
||||||
--[[
|
|
||||||
Brutal hands has a TOC_COMPAT but its check is wrong and uses an old API.
|
|
||||||
]]
|
|
||||||
|
|
||||||
local activatedMods = getActivatedMods()
|
local activatedMods = getActivatedMods()
|
||||||
TOC_DEBUG.print("Checking for mods compatibility")
|
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
|
if activatedMods:contains('BrutalHandwork') then
|
||||||
TOC_DEBUG.print("found BrutalHandwork, activating compat module")
|
TOC_DEBUG.print("found BrutalHandwork, activating compat module")
|
||||||
BrutalHands = BrutalHands or {}
|
BrutalHands = BrutalHands or {}
|
||||||
BrutalHands.TOC = require("TOC/API")
|
BrutalHands.TOC = require("TOC/API")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--[[
|
||||||
|
Was handled inside old TOC
|
||||||
|
]]
|
||||||
if activatedMods:contains('FancyHandwork') then
|
if activatedMods:contains('FancyHandwork') then
|
||||||
TOC_DEBUG.print("found FancyHandwork, activating compat module")
|
TOC_DEBUG.print("found FancyHandwork, activating compat module")
|
||||||
|
|
||||||
@@ -28,11 +32,7 @@ local function HandleModCompatibility()
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
Events.OnGameStart.Add(HandleModCompatibility)
|
Events.OnGameStart.Add(HandleModCompatibility)
|
||||||
|
|||||||
Reference in New Issue
Block a user