From e310a38f9b96991dd1fdf5a4ba9f95a5638c6f0e Mon Sep 17 00:00:00 2001 From: rudde Date: Tue, 6 Aug 2024 14:39:49 +0300 Subject: [PATCH] skip stacked mobs to nametag check --- .../artillexstudios/axminions/integrations/Integrations.kt | 6 ------ .../axminions/minions/miniontype/SlayerMinionType.kt | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/common/src/main/kotlin/com/artillexstudios/axminions/integrations/Integrations.kt b/common/src/main/kotlin/com/artillexstudios/axminions/integrations/Integrations.kt index 8008c0f..4171c89 100644 --- a/common/src/main/kotlin/com/artillexstudios/axminions/integrations/Integrations.kt +++ b/common/src/main/kotlin/com/artillexstudios/axminions/integrations/Integrations.kt @@ -189,12 +189,6 @@ class Integrations : Integrations { .sendMessage(StringUtils.formatToString("<#33FF33>[AxMinions] Hooked into ItemsAdder!")) } - if (Bukkit.getPluginManager().getPlugin("ItemsAdder") != null) { - itemsAdderIntegration = true - Bukkit.getConsoleSender() - .sendMessage(StringUtils.formatToString("<#33FF33>[AxMinions] Hooked into ItemsAdder!")) - } - if (Bukkit.getPluginManager().getPlugin("Towny") != null) { register(TownyIntegration()) } diff --git a/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/SlayerMinionType.kt b/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/SlayerMinionType.kt index 259ec0e..505a477 100644 --- a/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/SlayerMinionType.kt +++ b/common/src/main/kotlin/com/artillexstudios/axminions/minions/miniontype/SlayerMinionType.kt @@ -77,7 +77,7 @@ class SlayerMinionType : MinionType("slayer", AxMinionsPlugin.INSTANCE.getResour return@fastFor } - if (!getConfig().getBoolean("damage-renamed") && it.customName != null) { + if (!getConfig().getBoolean("damage-renamed") && it.customName != null && AxMinionsPlugin.integrations.getStackerIntegration().getStackSize(it) <= 1) { return@fastFor }