Chain Mining Reforged-0.0.1+build.21-hotfix.2
Curse Maven Snippet
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

