Skip to content

Commit 4195d9e

Browse files
authored
Merge pull request #92 from LetsTimeIt/mdt-interop
fix: full MDT interop through optional dependencies.
2 parents 2efbf0b + 60fc783 commit 4195d9e

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

DungeonTools.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ do
187187
C_MythicPlus.RequestCurrentAffixes()
188188
C_MythicPlus.RequestMapInfo()
189189
C_MythicPlus.RequestRewards()
190-
if not MDT then
191-
MDT = DungeonTools
192-
end
193190
end)
194191
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
195192
end

DungeonTools.toc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
## Notes-koKR: Tool for planning and optimizing Mythic+ dungeon runs
1414
## Notes-zhCN: 规划和优化大秘境地下城运行的工具
1515
## Notes-zhTW: 幫助你計算 M+ 的小怪%,規劃出最佳拉怪路線。
16-
## OptionalDeps: ElvUI, LibStub, LibUIDropDownMenu, Ace3
16+
## OptionalDeps: ElvUI, LibStub, LibUIDropDownMenu, Ace3, MythicDungeonTools
1717
## SavedVariables: DungeonToolsDB
1818

1919
libs\load_libs.xml

init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
local AddonName, MDT = ...
22
_G["DungeonTools"] = MDT
3+
4+
if not _G["MDT"] then
5+
_G["MDT"] = MDT
6+
end
7+
38
local _L = {}
49
MDT.L = {}
510
local i18nMetaTable = {

0 commit comments

Comments
 (0)