Skip to content

Commit

Permalink
Merge pull request #92 from LetsTimeIt/mdt-interop
Browse files Browse the repository at this point in the history
fix: full MDT interop through optional dependencies.
  • Loading branch information
srenauld authored Jan 4, 2021
2 parents 2efbf0b + 60fc783 commit 4195d9e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 0 additions & 3 deletions DungeonTools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,6 @@ do
C_MythicPlus.RequestCurrentAffixes()
C_MythicPlus.RequestMapInfo()
C_MythicPlus.RequestRewards()
if not MDT then
MDT = DungeonTools
end
end)
self:UnregisterEvent("PLAYER_ENTERING_WORLD")
end
Expand Down
2 changes: 1 addition & 1 deletion DungeonTools.toc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
## Notes-koKR: Tool for planning and optimizing Mythic+ dungeon runs
## Notes-zhCN: 规划和优化大秘境地下城运行的工具
## Notes-zhTW: 幫助你計算 M+ 的小怪%,規劃出最佳拉怪路線。
## OptionalDeps: ElvUI, LibStub, LibUIDropDownMenu, Ace3
## OptionalDeps: ElvUI, LibStub, LibUIDropDownMenu, Ace3, MythicDungeonTools
## SavedVariables: DungeonToolsDB

libs\load_libs.xml
Expand Down
5 changes: 5 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
local AddonName, MDT = ...
_G["DungeonTools"] = MDT

if not _G["MDT"] then
_G["MDT"] = MDT
end

local _L = {}
MDT.L = {}
local i18nMetaTable = {
Expand Down

0 comments on commit 4195d9e

Please sign in to comment.