Open pietro-lopes opened 2 months ago
Those 2 caches might need a cleanup strategy when level is unloaded, maybe on LevelEvent.Unload?
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
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