The bug
If a piglin or hoglin is within 16 blocks of a player, they get the PersistenceRequired:1b
tag, making them unable to despawn and no longer count towards the mobcap, which results in thousands of mobs beeing alive in the nether and never despawning again.
Linked issues
relates to 2
Comments 3
IMHO:
PersistenceRequired should be triggered only when Hoglins were fed, leashed( ? ) or bred (baby).
For Piglins only when they picked up at least one item (except gold nugget, but gold ingot should count).
Can confirm. Might be intended (bar the performance hits of course) in order to keep hoglins and piglins around.
A potential fix might be to count for how long the piglin/hoglin has not been near a player, and if that value is above a certain threshold, remove the PersistenceRequired tag again.