mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-22 00:19:30 +00:00
Fixed spawn totems
This commit is contained in:
@@ -45,7 +45,7 @@ class SpawnTotemHandler : Listener {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
if (boss.totem != placedTotem) {
|
if (!boss.totem.matches(placedTotem)) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6,4 +6,10 @@ data class SpawnTotem(
|
|||||||
val top: Material,
|
val top: Material,
|
||||||
val middle: Material,
|
val middle: Material,
|
||||||
val bottom: 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