Memory leak in WorldAttached class
Rasmion opened this issue ยท 1 comments
Describe the Bug
WorldAttached seems to have problems with removing unloaded worlds. Flywheel also has a WorldAttached class in which this bug is probably fixed, at least there are comments that suggest this.
Reproduction Steps
- Build some constraptions in your world
- Switch the world a few times
- Notice the memory increase
Expected Result
There should be no memory leak, which eventually leads to lag spikes and crashes.
Screenshots and Videos
net.minecraft.class_638 -> ServerLevel
Crash Report or Log
No response
Operating System
Windows 11
Mod Version
0.5.0c
Minecraft Version
1.18.2
Other Mods
No response
Additional Context
No response