-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
bugSomething isn't working.Something isn't working.
Description
Describe the bug
Enabling killaura and setting mobAgeFilter to Baby will still attack adult mobs.
This is due to an incorrect instance check in killaura's mobAgeFilter.
if (entity instanceof AnimalEntity animal) { return switch (mobAgeFilter.get()) { case Baby -> animal.isBaby(); case Adult -> !animal.isBaby(); case Both -> true; }; }
AnimalEntity inherits from LivingEntity, and the isBaby function has already been declared in LivingEntity.
Steps to reproduce
- Use spawn eggs to generate one baby and one adult zombie
- Set killaura's mobAgeFilter to baby
- Enable killaura
- It will attack all zombies
Meteor Version
1.21.11#48
Minecraft Version
1.21.11
Operating System
Windows
Before submitting a bug report
-
This bug wasn't already reported (I have searched bug reports on GitHub).
-
This is a valid bug (I am able to reproduce this on the latest dev build).
Metadata
Metadata
Assignees
Labels
bugSomething isn't working.Something isn't working.