From d6f7eaeea9b13c73eaf0e5307fcc57cd03314fc7 Mon Sep 17 00:00:00 2001 From: Kevin Krol Date: Sun, 7 May 2023 10:54:13 +0200 Subject: [PATCH] Only register addon compartment in retail, fixes #169 --- CHANGELOG.md | 7 +++++++ Clicked/Core/Clicked.lua | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0bbed231..42d11d70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel * The MINOR component is used whenever a version has backwards-compatible profile changes. This also indicates that the user can not switch back to a previous MINOR version without using a backup. * The PATCH component is used for versions that do not contain profile format changes. Users can freely switch between PATCH versions without risk of data loss. +## [1.11.2] - 2023-05-07 + +### Fixed + +* Fix Lua error on WOTLK [#169] ## [1.11.1] - 2023-05-03 @@ -1101,6 +1106,7 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel * Initial public release [Unreleased]: https://github.com/Snakybo/Clicked/compare/1.11.1...master +[1.11.2]: https://github.com/Snakybo/Clicked/releases/tag/1.11.2 [1.11.1]: https://github.com/Snakybo/Clicked/releases/tag/1.11.1 [1.11.0]: https://github.com/Snakybo/Clicked/releases/tag/1.11.0 [1.10.6]: https://github.com/Snakybo/Clicked/releases/tag/1.10.6 @@ -1195,6 +1201,7 @@ The format of this changelog is based on [Keep a Changelog](https://keepachangel [0.4.0]: https://github.com/Snakybo/Clicked/releases/tag/0.4.0 [0.3.0]: https://github.com/Snakybo/Clicked/releases/tag/0.3.0 +[#169]: https://github.com/Snakybo/Clicked/issues/169 [#166]: https://github.com/Snakybo/Clicked/issues/166 [#163]: https://github.com/Snakybo/Clicked/issues/163 [#155]: https://github.com/Snakybo/Clicked/issues/155 diff --git a/Clicked/Core/Clicked.lua b/Clicked/Core/Clicked.lua index 0c55dc1e..706846b2 100644 --- a/Clicked/Core/Clicked.lua +++ b/Clicked/Core/Clicked.lua @@ -225,7 +225,10 @@ function Clicked:OnInitialize() Addon:UpgradeDatabaseProfile(Addon.db.profile) RegisterMinimapIcon() - RegisterAddonCompartment() + + if Addon:IsGameVersionAtleast("RETAIL") then + RegisterAddonCompartment() + end Addon:RegisterClickCastHeader() Addon:RegisterBlizzardUnitFrames()