From 0a1b6402c4003278fa85708385f4fa95633fa6c7 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Mon, 19 Jun 2023 17:45:22 -0700 Subject: [PATCH] ModuleManager: Add warning when importing modules with mixins --- .../com/chattriggers/ctjs/engine/module/ModuleManager.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/com/chattriggers/ctjs/engine/module/ModuleManager.kt b/src/main/kotlin/com/chattriggers/ctjs/engine/module/ModuleManager.kt index 48fd68be..71628d5f 100644 --- a/src/main/kotlin/com/chattriggers/ctjs/engine/module/ModuleManager.kt +++ b/src/main/kotlin/com/chattriggers/ctjs/engine/module/ModuleManager.kt @@ -169,7 +169,10 @@ object ModuleManager { loadAssetsAndJars(newModules) - // TODO: Print warning to console if metadatas contain an asm key + newModules.forEach { + if (it.metadata.mixinEntry != null) + ChatLib.chat("&cModule ${it.name} has dynamic mixins which require a restart to take effect") + } entryPass(newModules)