From 2b328ae309c996e09f77e2b07486f92b6ff806ad Mon Sep 17 00:00:00 2001 From: Merith Date: Mon, 4 Jul 2022 13:08:31 +0000 Subject: [PATCH] stopgap fix for opus icons on newer MC --- sys/modules/opus/util.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sys/modules/opus/util.lua b/sys/modules/opus/util.lua index 484231b..4541ebd 100644 --- a/sys/modules/opus/util.lua +++ b/sys/modules/opus/util.lua @@ -177,6 +177,12 @@ function Util.getVersion() end if not version and _G._HOST then version = tonumber(_G._HOST:match('[%d]+%.?[%d][%d]')) + + -- stopgap fix for icons breaking on 1.100.x CC versions + -- TODO: Make this cleaner and more resiliant + if version == 1.1 then + version = 1.999 + end end return version or 1.7