From 51ed12e5e55bab24518ff55cb09bc440f127434d Mon Sep 17 00:00:00 2001 From: Tim Robertson Date: Thu, 25 Jul 2024 01:37:15 -0400 Subject: [PATCH] Fix the classic check --- SheepMonitor.toc | 2 +- changelog.txt | 3 +++ main.lua | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SheepMonitor.toc b/SheepMonitor.toc index 4717689..2a0e13f 100755 --- a/SheepMonitor.toc +++ b/SheepMonitor.toc @@ -2,7 +2,7 @@ ## Title: Sheep Monitor ## Notes: Provides various methods of notification to help you keep track of your flock. ## Author: funkjedi -## Version: 1.27 +## Version: 1.28 ## SavedVariables: SheepMonitorDatabase ## OptionalDeps: Ace3, LibAuras, LibAuraInfo-1.0 ## X-Curse-Project-ID: 28218 diff --git a/changelog.txt b/changelog.txt index 7f917a0..e37c7f0 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,3 +1,6 @@ +1.28 +- fix check for classic + 1.27 - updated for patch 11.0 diff --git a/main.lua b/main.lua index b719f96..b7ba43e 100755 --- a/main.lua +++ b/main.lua @@ -61,7 +61,7 @@ function SheepMonitor:OnInitialize() end function SheepMonitor:IsClassic() - return select(1, GetBuildInfo()) < '8.0.0' + return WOW_PROJECT_ID ~= WOW_PROJECT_MAINLINE end function SheepMonitor:OnEnable()