c2me - Au Naturel edition

A fork of the multi-threaded world generation mod with edits and optimisations specifically for the Au Naturel Modpack

File Details

c2me-fabric-mc1.20.1-0.2.0+alpha.11.20.26.3.jar

  • R
  • Jan 9, 2026
  • 1.37 MB
  • 154
  • 1.20.1
  • Fabric

File Name

c2me-fabric-mc1.20.1-0.2.0+alpha.11.20.26.3.jar

Supported Versions

  • 1.20.1

Curse Maven Snippet

Fabric

modImplementation "curse.maven:c2me-au-naturel-edition-1394196:7436848"
Curse Maven does not yet support mods that have disabled 3rd party sharing

Learn more about Curse Maven

Performance Improvements

Lock-Free State Machine

  • Replaced synchronized methods with CAS-based state machine in AsyncCombinedLock and SchedulingAsyncCombinedLock

CMETrackingMap Allocation Removal

  • Removed expensive Throwable allocation

Function.identity() Removal

  • Removed unnecessary .thenApply(Function.identity()) wrappers in 5 locations
  • Reduces CompletableFuture allocation and completion chain depth

Dead Timing Code Removal

  • Removed unused System.nanoTime() calls in SchedulingManager
  • Eliminates 2 system calls per sync load update

Bug Fixes

Lock-Free Race Condition Fix

  • Fixed state transition timing that allowed concurrent execution during lock cleanup
  • State now remains ACQUIRING during cleanup, only resets to PENDING before retry

ThreadLocal Memory Leak Prevention

  • Added withScope() and withScopeVoid() helper methods to AsyncSerializationManager
  • Guarantees ThreadLocal cleanup via try-finally pattern
  • Prevents memory leaks in long-running servers

Configuration

  • Changed default spawn blacklist to empty (users can add entries as needed).  Since everyone seems like they'll keep trying to use this outside of Au Naturel anyway, i might as well make it have nicer defaults for them at a marginal bit of work for myself :)