9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 16:09:24 +00:00

Fixed spawn totems

This commit is contained in:
Auxilor
2022-02-28 10:09:31 +00:00
parent 36f944c58c
commit fed6dcafd7
2 changed files with 8 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ class SpawnTotemHandler : Listener {
continue
}
if (boss.totem != placedTotem) {
if (!boss.totem.matches(placedTotem)) {
continue
}

View File

@@ -6,4 +6,10 @@ data class SpawnTotem(
val top: Material,
val middle: Material,
val bottom: Material
)
) {
fun matches(totem: SpawnTotem): Boolean {
return this.top == totem.top
&& this.middle == totem.middle
&& this.bottom == totem.bottom
}
}