promotional bannermobile promotional banner

Chain Mining Reforged

A command mod for fabric 1.21.4
Back to Files

Chain Mining Reforged-0.0.1+build.21-hotfix.2

File nameChain Mining Reforged-0.0.1+build.21-hotfix.2.jar
Uploader
Redstone2337Redstone2337
Uploaded
Apr 17, 2025
Downloads
154
Size
256.1 KB
Mod Loaders
Fabric
File ID
6434431
Type
R
Release
Supported game versions
  • 1.21.4

Curse Maven Snippet

Fabric

modImplementation "curse.maven:chain-mining-reforged-1226152:6434431"

Learn more about Curse Maven

What's new

0.0.1+build.21-hotfix.2 Patch Update

Fix memory leak caused by recursive method of buildNested Commands (int currentDepth) in /sex command.

// Method causing memory leak
private static ArgumentBuilder<ServerCommandSource, ?> buildNestedCommands(int currentDepth) {
        if (currentDepth >= MAX_NESTING_DEPTH) {
            return CommandManager.literal(""); // 达到最大深度时停止
        }

        return CommandManager.literal("sexas")
            .then(CommandManager.argument("nextTarget", EntityArgumentType.entities())
                .then(buildNestedCommands(currentDepth + 1)))
            .then(CommandManager.literal("sexat")
                .then(CommandManager.argument("nextTarget", EntityArgumentType.entities())
                    .then(buildNestedCommands(currentDepth + 1))));
    }

Add vertical miner feature

This mod has no additional files