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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user