mirror of
https://github.com/Auxilor/EcoMobs.git
synced 2025-12-20 15:39:31 +00:00
Fixed egg display
This commit is contained in:
@@ -25,7 +25,10 @@ class EggDisplay(
|
|||||||
|
|
||||||
val egg = itemStack.bossEgg ?: return
|
val egg = itemStack.bossEgg ?: return
|
||||||
|
|
||||||
val lines = egg.getNotMetLines(player).map { Display.PREFIX + it }
|
val lines = egg.spawnConditions
|
||||||
|
.filterNot { it.isMet(player) }
|
||||||
|
.map { it.notMetLines }
|
||||||
|
.map { Display.PREFIX + it }
|
||||||
|
|
||||||
if (lines.isNotEmpty()) {
|
if (lines.isNotEmpty()) {
|
||||||
lore.add(Display.PREFIX)
|
lore.add(Display.PREFIX)
|
||||||
|
|||||||
Reference in New Issue
Block a user