From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Helvetica Volubi Date: Thu, 4 Sep 2025 02:14:16 +0800 Subject: [PATCH] Add config to enable function command diff --git a/net/minecraft/commands/Commands.java b/net/minecraft/commands/Commands.java index f0f6175569100589102d9d76b3ff8f5546030060..ddd656e147cdaeb8f91865117e6f9c268b0fd9bc 100644 --- a/net/minecraft/commands/Commands.java +++ b/net/minecraft/commands/Commands.java @@ -217,7 +217,11 @@ public class Commands { FillCommand.register(this.dispatcher, context); FillBiomeCommand.register(this.dispatcher, context); ForceLoadCommand.register(this.dispatcher); - //FunctionCommand.register(this.dispatcher); // Folia - region threading - TODO + // Lophine start - Add config to enable function command + if (fun.bm.lophine.config.modules.experiment.CommandConfig.function) { + FunctionCommand.register(this.dispatcher); // Folia - region threading - TODO + } + // Lophine end - Add config to enable function command GameModeCommand.register(this.dispatcher); GameRuleCommand.register(this.dispatcher, context); GiveCommand.register(this.dispatcher, context);