[Bug] Goblins will trying eat food when killed
SnowCutieOwO opened this issue ยท 9 comments
Describe the bug
If you try kill them at this moment they will fall and shown red, but could be easily killed if clicked on.
To Reproduce
- Spawn a goblin
- Damage it and make it eating food
- Kill it when eating
- The bug came out
Expected behavior
Goblins should stop eating immediately if he died
Mod Version
1.11.2
Modloader
NeoForge 1.21.1
Crash Log (if applicable)
N/A
Additional context
N/A
Can you send a video of the problem since I can't replicate the issue? In my test, I get them to a one shot hit, then when they eat, I punch, and they die as normal.
Are you sure you're not confused with the stun animation? There is also a noticeable vanilla kill sound when you actually kill any mob.
Are you sure you're not confused with the stun animation? There is also a noticeable vanilla kill sound when you actually kill any mob.
Yes and I'm pretty sure
I don't know what the bug is. When I kill them while eating, they die as normal.
I don't know what the bug is. When I kill them while eating, they die as normal.
That's the problem. If you try to kill them when they finished eating, their health will recover during death animation, but give it another damage will make it back to normal.
While I can't reproduce the issue, I've implemented a potential fix that will cancel the eat goal when the goblin is attacked. 575ac04
While I can't reproduce the issue, I've implemented a potential fix that will cancel the eat goal when the goblin is attacked. 575ac04
it's easy to reproduce if you put a lot goblins into a small space
I've followed your steps and don't run into the problem you have described. I will need a video or something with more details.