Create

Create

86M Downloads

Memory leak in WorldAttached class

Rasmion opened this issue ยท 0 comments

commented

Describe the Bug

[Issue forwarded from Fabricators-of-Create/issues/491]

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

  1. Build some constraptions in your world
  2. Switch the world a few times
  3. 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
grafik
grafik

Crash Report or Log

No response

Operating System

Windows 11

Mod Version

0.5.0c

Minecraft Version

1.18.2

Forge Version

1.18.2 - 40.1.68

Other Mods

No response

Additional Context

No response