e90c758a01
Add Lophine-specific configuration support (global and carpet configs) and a temporary config transform step during init. Introduce config-controlled command registrations (function, scoreboard, trigger, tick) and enable tick-rate/command tweaks and an entity raytracing tracker flag. Fix datapack command save/listing behavior. Integrate Leaves update-suppression handling broadly: catch and convert update-suppression exceptions across packet handling, ticking, neighbor updates, block state updates and more; add configurable shulker CCE behavior and redstone upward-update compatibility. Provide an option to reintroduce an InstantNeighborUpdater (instant block updater) and other small compatibility/rebrand adjustments.
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 2c2487e1c1c65438119a13bd705a9e44697955ed..4e0428948d618b0a072679762dc3cb39d6e12c2f 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);
|