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:
@@ -45,7 +45,7 @@ class SpawnTotemHandler : Listener {
|
||||
continue
|
||||
}
|
||||
|
||||
if (boss.totem != placedTotem) {
|
||||
if (!boss.totem.matches(placedTotem)) {
|
||||
continue
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user