9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-19 15:09:17 +00:00

Fixed massive bug with mob eggs

This commit is contained in:
Will FP
2025-10-05 15:21:47 +01:00
parent f138127c27
commit 88192c6d8f

View File

@@ -11,6 +11,7 @@ import com.willfp.eco.core.fast.fast
import com.willfp.eco.core.items.CustomItem
import com.willfp.eco.core.items.Items
import com.willfp.eco.core.items.builder.modify
import com.willfp.eco.core.items.toSNBT
import com.willfp.eco.core.recipe.Recipes
import com.willfp.eco.core.recipe.parts.EmptyTestableItem
import com.willfp.eco.util.NamespacedKeyUtils
@@ -263,7 +264,9 @@ internal class ConfigDrivenEcoMob(
CustomItem(
plugin.createNamespacedKey("${this.id}_spawn_egg"),
{ item.fast().ecoMobEgg == this },
{
it.fast().ecoMobEgg == this@ConfigDrivenEcoMob
},
item
).register()