Back to mods
Dimension Leak Fix project artwork

CurseForge · Minecraft mod

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.

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Dimension Leak Fix release should I use?

Updated 8 days ago
Latest stable file dimension-leak-fix-mc26.2-fabric-1.0.2.jar
Game version 26.2
Loader Fabric

Dimension Leak Fix dimension-leak-fix-mc26.2-fabric-1.0.2.jar targets 26.2 with Fabric. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.

Where it goes

Is Dimension Leak Fix required on the client, server, or both?

The project page does not say whether this file belongs on the client, dedicated server, or both.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release Fabric
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

The source does not explicitly classify this release as client-only or server-only.

What else does Dimension Leak Fix dimension-leak-fix-mc26.2-fabric-1.0.2.jar need?

dimension-leak-fix-mc26.2-fabric-1.0.2.jar. Change the file and its required mods may change too.

No extra mods listed for this file

This file does not list any required mods. Do not add a library just because a different file uses it.

This file does not list any required or optional mods.

Before you install it

Add Dimension Leak Fix without breaking your instance.

Built for Dimension Leak Fix dimension-leak-fix-mc26.2-fabric-1.0.2.jar. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use dimension-leak-fix-mc26.2-fabric-1.0.2.jar. It targets 26.2 with Fabric; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    This file does not list any required mods. Do not add a library just because a different file uses it.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 04

    Pick the file you checked

    Use the “Get this file” button beside dimension-leak-fix-mc26.2-fabric-1.0.2.jar. It opens that exact file at the source.

About this project

What does Dimension Leak Fix add?

Every time you travel between the Overworld, Nether, and End, your client creates a new ClientWorld. The old world should be garbage-collected, but several popular mods accidentally hold references to it - causing it to stay in memory forever.

After just a few dimension changes, this can eat 4-8 GB of RAM, leading to lag spikes, stuttering, and eventually crashes.

Dimension Leak Fix automatically detects dimension transitions and surgically breaks these retention chains, recovering 2-4 GB of memory per transition.

What it fixes

Source Problem Impact
Entity references Entities in the old world hold a .level field pointing back to it ~200 MB per transition
Collective BlockEntityData.cachedBlockEntities retains old worlds through nested WeakHashMaps ~1.2 GB per transition
AmbientSounds AirPocketScanner thread holds thousands of ChunkSections as a GC root ~1.4 GB per transition
Create Renderer caches hold references to old world data Variable
Chunk storage Old world's ChunkManager retains all loaded chunks in memory ~1-3 GB per transition

How it works

The mod uses a two-phase approach:

  • Phase A (instant): When you change dimension, the mod immediately detaches entity references, flushes Collective caches, stops the AmbientSounds scanner thread, detaches Spark command senders, and invalidates Create's renderer.
  • Phase B (3 seconds later): The mod clears the old world's chunk storage array and entity sets. This is delayed to avoid interfering with the renderer during the transition.

Compatibility

  • Client-side only - does not need to be installed on the server
  • Works with or without any of the mods listed above - the mod detects what's installed and only applies relevant fixes
  • Tested with 200+ mods including Iris, Sodium, Distant Horizons, Create, Collective, AmbientSounds

Log output

The mod logs everything it does. Example output after a dimension change:

[DimensionLeakFix] Dimension change detected, cleaning up old world...
[DimensionLeakFix]   Entities: 131 world references detached
[DimensionLeakFix]   Collective: 1 cache(s) flushed in cachedBlockEntities
[DimensionLeakFix]   AmbientSounds: scanner stopped (3 fields cleared)
[DimensionLeakFix]   Create: renderer cache invalidated
[DimensionLeakFix] Phase A complete (137 operations)
[DimensionLeakFix] Phase B scheduled (3s delay)
[DimensionLeakFix] Phase B: releasing old world data...
[DimensionLeakFix]   Chunks: 2809 slots released
[DimensionLeakFix]   loadedChunks: 2809 entries cleared
[DimensionLeakFix] Phase B complete (2810 references released, ~3706 MB freed)

Used in the Legends Reborn: Medieval modpack.

Project description from CurseForge.

Pick your setup

Dimension Leak Fix by Minecraft version and loader

Choose the version and loader you play, then open the matching release.

29 available setups

Showing the newest 12 of 29 game versions. Older files are in the list below.

Check the dependencies, then try the file in a copied instance before changing a world you care about.

Recent files

Dimension Leak Fix versions and loaders

50 of 50 releases match

Looking for an older file? The official CurseForge project page is in Resources.