Closed pietro-lopes closed 3 months ago
Also, some renderers are holding entity, you need to find a way to clean up if the level is unloaded.
Thank you for bringing this to my attention! I think I've fixed all the leaks by using weak references. Please let me know if you find anything else.
Bug description
This cache is leaking the level https://github.com/henkelmax/easy-villagers/blob/b3d24820ff8bc995f49226ffe6b7c36a118b077a/src/main/java/de/maxhenkel/easyvillagers/datacomponents/VillagerBlockEntityData.java#L33
Minecraft version
1.21.1
Mod version
1.21.1-1.1.19
Mod loader and version
NeoForge 21.1.28
Steps to reproduce
With EMI installed
Expected behavior
Should have a cleanup strategy to clear those cache on LevelEvent.Unload, maybe? Pick what you know it is best.
Log files
screenshot posted
Screenshots
No response