Back to mods
Naturalist Lag Fix project artwork

CurseForge · Minecraft mod

Naturalist Lag Fix

Fixes a memory leak in Naturalist that slows down servers over time (whale & shark body parts).

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

Quick answer

Which Naturalist Lag Fix release should I use?

Updated last month
Latest stable file Naturalist Lag Fix 1.0.1
Game version 1.21.1
Loader NeoForge

Naturalist Lag Fix 1.0.1 targets 1.21.1 with NeoForge. The project page does not say whether this file belongs on the client, dedicated server, or both. All 2 required mods have matching files.

Where it goes

Is Naturalist Lag 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 NeoForge
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 Naturalist Lag Fix 1.0.1 need?

Naturalist Lag Fix 1.0.1. Change the file and its required mods may change too.

All 2 required mods have matching files

Install Naturalist, GeckoLib first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

1 listed on this file 1 pulled in by one of those mods
Naturalist Needed by Naturalist Lag Fix 1.0.1
required
Matching file found Matched file: Naturalist 2.0.7 (NeoForge 1.21.1)
GeckoLib Needed by Naturalist
pulled in
Matching file found Matched file: NeoForge 1.21.1 4.9.5

1 extra mod was pulled in by another dependency. Indented rows show who needs each one. We only count dependency files that match this setup. A file for another loader does not fill the gap.

Before you install it

Add Naturalist Lag Fix without breaking your instance.

Built for Naturalist Lag Fix 1.0.1. Pick another file and the loader, install side or required mods may change.

  1. 01

    Stick to this file

    Use Naturalist Lag Fix 1.0.1. It targets 1.21.1 with NeoForge; another release may have different loader, side or dependency requirements.

  2. 02

    Bring the mods it needs

    Install Naturalist, GeckoLib first. We found matching files for this game-version and loader setup. 1 comes through another mod in the chain.

  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 Naturalist Lag Fix 1.0.1. It opens that exact file at the source.

About this project

What does Naturalist Lag Fix add?

Naturalist Lag Fix

A small fix for a memory leak in Naturalist (2.0.5, NeoForge 1.21.1) that makes servers slower and slower the longer they run.

The problem
Whales and Great White Sharks have multi-part bodies. Naturalist registers every body part in a list attached to the world, but only removes them when the creature dies or is discarded. When the creature is simply unloaded with its chunk, its parts stay in the list forever — and a new copy is added each time the chunk reloads.

Every time the game searches for nearby entities (mob AI, collisions, item pickup, Create contraptions…), Naturalist loops over that whole list. On our server, naturalist$includeMobParts ended up taking about 33% of every server tick in spark.

The fix

  • Body parts are removed as soon as their creature leaves the world, including when its chunk unloads.
  • Every 10 seconds, any leftover orphan parts are cleaned up.
  • Nothing else in Naturalist is changed: whales and sharks behave exactly the same.

Installation

  • Server: required.
  • Client: recommended (the same leak exists client-side).
  • Requires Naturalist. When the fix works, a line [NaturalistFix] … parties fantomes retirees appears in the log.

Credits

  • Naturalist by Starfish Studios (Crispytwig): all credit for the mod, its creatures and its content goes to them. This is an unofficial fix, not affiliated with the Naturalist team. If they fix the leak upstream, you won't need this mod anymore.

Project description from CurseForge.

Pick your setup

Naturalist Lag Fix by Minecraft version and loader

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

1 available setups

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

Recent files

Naturalist Lag Fix versions and loaders

2 of 2 releases match

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