skip stacked mobs to nametag check

This commit is contained in:
rudde 2024-08-06 14:39:49 +03:00
parent a364450a41
commit e310a38f9b
2 changed files with 1 additions and 7 deletions

View File

@ -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())
}

View File

@ -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
}