AHilyard / Iceberg

A library containing events, helpers, and utilities to make modding easier.
Other
23 stars 10 forks source link

Memory Leak of Client Level #76

Open pietro-lopes opened 2 months ago

pietro-lopes commented 2 months ago

Those 2 caches might need a cleanup strategy when level is unloaded, maybe on LevelEvent.Unload?

https://github.com/AHilyard/Iceberg/blob/8992661be446ea15c803a4e8830cacabc8353dc7/common/src/main/java/com/anthonyhilyard/iceberg/util/EntityCollector.java#L70

https://github.com/AHilyard/Iceberg/blob/8992661be446ea15c803a4e8830cacabc8353dc7/common/src/main/java/com/anthonyhilyard/iceberg/util/EntityCollector.java#L73

image