promotional bannermobile promotional banner

Dimension Leak Fix

Fixes memory leaks when switching dimensions. Mods like Collective, AmbientSounds and Create retain old worlds in RAM - this mod cleans them up automatically, recovering 2-4 GB per transition.
Back to Files

dimension-leak-fix-mc1.21.8-fabric-1.0.2.jar

File namedimension-leak-fix-mc1.21.8-fabric-1.0.2.jar
Uploader
BahanosBahanos
Uploaded
Aug 21, 2026
Downloads
14
Size
112.2 KB
Mod Loaders
Fabric
File ID
8696638
Type
R
Release
Supported game versions
  • 1.21.8

Curse Maven Snippet

Fabric

modImplementation "curse.maven:dimension-leak-fix-1472850:8696638"

Learn more about Curse Maven

What's new

v1.0.2:
- Fixes a crash when travelling through a portal alongside mods that keep a reference to an entity, such as Perception. Reported by a user, and the fault was mine.
- Until 1.0.1 the cleanup set Entity.level to null on every entity of the world you were leaving, to break the entity-to-world chain that keeps the old world in memory. Vanilla guarantees that field is never null while the entity lives, so nothing guards against it: any mod holding an entity across the transition read null and crashed. That step is gone.
- Nothing else changes. The deferred pass still empties the old world's own containers, which needs no such mutation, and the leak the removed step targeted belongs to whichever mod retains the entity in the first place.

This mod has no additional files