c8b50d84a9
Co-authored-by: MrHua269 <mrhua269@gmail.com>
24 lines
1.2 KiB
Diff
24 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
|
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 f9a8c79640ed6ca381e4482eaeab6b23db59419f..1b2d3e2c23e8e03ae25e85a60b6ef0528e627f61 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);
|