CustomNPCs MarkData Leak Fix

Fixes a CustomNPCs-Unofficial memory leak that keeps every unloaded mob in memory and crashes servers with OutOfMemoryError.
Back to Files

cnpc_markdata_fix-neoforge-1.21.1-1.0.0.jar

File namecnpc_markdata_fix-neoforge-1.21.1-1.0.0.jar
Uploader
DepthDrakoDepthDrako
Uploaded
Oct 12, 2026
Downloads
37
Size
8.3 KB
Mod Loaders
NeoForge
File ID
9142320
Type
R
Release
Supported game versions
  • 1.21.1

Curse Maven Snippet

NeoForge

implementation "curse.maven:customnpcs-markdata-leak-fix-1740599:9142320"

Learn more about Curse Maven

What's new

First release.

  • Fixes CustomNPCs-Unofficial's MarkData cache keeping every saved or tracked living entity in memory forever.
  • The cache becomes thread-safe; an entry is dropped when its entity leaves the world, plus a sweep every 10 seconds.
  • /cnpcmarkfix status command (op level 2).
  • Works on server and client, either side alone; does nothing without CustomNPCs.

This mod has no additional files