I’m back from Kiwiburn and going straight back to modding. I’ve spent the better part of the day fixing some bugs that were introduced by the recent addition of hostile butterflies that will attempt to infiltrate and take illagers as hosts.
Wandering Trader Hosts
Not really a bug fix, but more of a new feature. Now Wandering Traders can be hosts to the Butterfly parasite, just like all the other illagers. So be careful next time you kill one of them to get your hands on some leads…

Old Villagers Love Being Hosts
In the mod for versions 1.18.2 and 1.19.2 of Minecraft, I used the wrong event to check when an entity was spawning. This meant that all entities would check for a Peacemaker Butterfly every single tick instead of just once when they initially spawn. Not only did this mean that they would always end up becoming hosts, this would seriously slow the game down as it was doing hundreds of unnecessary checks per second.

This is fixed now, and villagers should become infested at the same rate as they do in later versions of Minecraft.
Secret Jobs
Although I added translation strings for all the new entities, I didn’t add any strings for villager hosts with jobs. This missing string was a dead giveaway that a villager was infested. The latest release contains these missing strings so now the Peacemaker Butterflies can continue to hide in plain sight.

Overly Usable Nets
It turns out that this bug has been in the mod for a long time. If you used a full butterfly net on another butterfly, it would capture that butterfly and the old one would disappear.

Now full butterfly nets behave as designed and can only be used to catch a butterfly if they are empty.
No Hosts Here
As written, the original code would allow for villagers to become hosts simply by being born. Since this doesn’t make logical sense, checks have been added so that villagers produced by breeding can’t become infested right away.

Deplurilisation
In the later versions of Minecraft (1.21.1 and 1.21.4), there were some changes to tags so that they used singular names for their folders instead of plural (i.e. entity_name instead of entity_names). This meant that Peacemaker entities would fight each other in earlier releases, but the latest release fixes that.

Conclusion
Today’s release fixes a lot of bugs, but that doesn’t mean there aren’t any more. As I keep trying to encourage, if you spot any bugs please feel free to submit an issue, and I will do my best to fix them as quickly as I can. Otherwise, just enjoy the mod!