From f0d35226308b1ad22d573818f53230da56e5d3e3 Mon Sep 17 00:00:00 2001 From: Boy Date: Tue, 28 Nov 2023 21:21:51 +0100 Subject: [PATCH] move ModelEngineSupport to onEnable --- src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt b/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt index 151acef4..03bca50b 100644 --- a/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt +++ b/src/main/kotlin/com/mineinabyss/mobzy/MobzyPlugin.kt @@ -66,6 +66,12 @@ class MobzyPlugin : JavaPlugin() { geary.pipeline.addSystems( CopyNBTSystem(), ) + + geary { + if (Plugins.isEnabled("ModelEngine")) { + install(ModelEngineSupport) + } + } } override fun onDisable() {