From 3f4ad193aea2f67e26603e9fbd434bb968aef16c Mon Sep 17 00:00:00 2001 From: Miepee Date: Fri, 5 Jan 2024 11:50:46 +0100 Subject: [PATCH] Fix compile errors after updating utmt --- GlennLib/RawMods.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GlennLib/RawMods.cs b/GlennLib/RawMods.cs index 6b0a027..d4d696e 100644 --- a/GlennLib/RawMods.cs +++ b/GlennLib/RawMods.cs @@ -602,7 +602,7 @@ private static void ChangeToByteCode16(UndertaleData Data, OutputHandlerDelegate throw new NotSupportedException("Bytecode 14 is not supported."); if (bcVersion == 17) throw new NotSupportedException("Bytecode 17 is not supported."); - if (!((Data.GMS2_3 == false) && (Data.GMS2_3_1 == false) && (Data.GMS2_3_2 == false))) + if (Data.IsVersionAtLeast(2, 3)) throw new NotSupportedException("GMS 2.3+ is not supported."); if (bcVersion != 14 && bcVersion != 15 && bcVersion != 16) throw new NotSupportedException("Unknown Bytecode version!");