Animal Feeding Trough [Fabric | Forge | Quilt | NeoForge]

Animal Feeding Trough [Fabric | Forge | Quilt | NeoForge]

12M Downloads

Crash with regular mobs that can be tempted

Pyrofab opened this issue ยท 0 comments

commented

Crash Report

Animal Feeding Troughs seems to assume that every MobEntity that has a TemptGoal is an AnimalEntity. Some mods like Creeper Spores break that assumption, causing an instant crash as soon as one get spawned.

I believe one solution would be to fix this mixin so that it actually targets AnimalEntity instead of MobEntity. Note that you can make your mixin extend MobEntity to gain access to the goalSelector.