Add explicit support for brutal handwork
This commit is contained in:
15
media/lua/client/TOC/Compat.lua
Normal file
15
media/lua/client/TOC/Compat.lua
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
--* BRUTAL HANDS -- *
|
||||
|
||||
local function HandleModCompatibility()
|
||||
|
||||
if getActivatedMods():contains('BrutalHandwork') then
|
||||
BrutalHands = BrutalHands or {}
|
||||
BrutalHands.TOC = require("TOC/API")
|
||||
|
||||
-- Brutal hands has a TOC_COMPAT but its check is wrong and uses an old API.
|
||||
end
|
||||
end
|
||||
|
||||
Events.OnGameStart.Add(HandleModCompatibility)
|
||||
|
||||
Reference in New Issue
Block a user