From 6fbf25dd1af3211e8d4f5eeafdc8ccc3e2ead855 Mon Sep 17 00:00:00 2001 From: ChimpGamer Date: Sun, 6 Oct 2024 00:08:48 +0200 Subject: [PATCH] Check if hook is enabled to make the plugin work without RoseStacker. --- .../chimpgamer/ultimatemobcoins/paper/hooks/RoseStackerHook.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/paper/src/main/kotlin/nl/chimpgamer/ultimatemobcoins/paper/hooks/RoseStackerHook.kt b/paper/src/main/kotlin/nl/chimpgamer/ultimatemobcoins/paper/hooks/RoseStackerHook.kt index 9dd38bc..08e8c20 100644 --- a/paper/src/main/kotlin/nl/chimpgamer/ultimatemobcoins/paper/hooks/RoseStackerHook.kt +++ b/paper/src/main/kotlin/nl/chimpgamer/ultimatemobcoins/paper/hooks/RoseStackerHook.kt @@ -53,6 +53,7 @@ class RoseStackerHook(private val plugin: UltimateMobCoinsPlugin) { } fun shouldIgnoreNormalDeathEvent(entity: LivingEntity): Boolean { + if (!hookEnabled) return false val api = RoseStackerAPI.getInstance() val stackedEntity = api.getStackedEntity(entity)