24 lines
1.4 KiB
Diff
24 lines
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Helvetica Volubi <suisuroru@blue-millennium.fun>
|
|
Date: Mon, 29 Sep 2025 22:56:03 +0800
|
|
Subject: [PATCH] Add config to enable scoreboard command
|
|
|
|
|
|
diff --git a/net/minecraft/commands/Commands.java b/net/minecraft/commands/Commands.java
|
|
index 86866a9fa92d2e1ac0026e5764f459cc73e0b266..f54f6047f326189329e11338b17105f5555dde12 100644
|
|
--- a/net/minecraft/commands/Commands.java
|
|
+++ b/net/minecraft/commands/Commands.java
|
|
@@ -244,7 +244,11 @@ public class Commands {
|
|
RotateCommand.register(this.dispatcher);
|
|
SayCommand.register(this.dispatcher);
|
|
//ScheduleCommand.register(this.dispatcher); // Folia - region threading
|
|
- //ScoreboardCommand.register(this.dispatcher, context); // Folia - region threading
|
|
+ // Lophine start - Add a config to enable scoreboard command
|
|
+ if (fun.bm.lophine.config.modules.experiment.CommandConfig.scoreboard) {
|
|
+ ScoreboardCommand.register(this.dispatcher, context); // Folia - region threading
|
|
+ }
|
|
+ // Lophine start - Add a config to enable scoreboard command
|
|
SeedCommand.register(this.dispatcher, commandSelection != Commands.CommandSelection.INTEGRATED);
|
|
VersionCommand.register(this.dispatcher, commandSelection != Commands.CommandSelection.INTEGRATED);
|
|
SetBlockCommand.register(this.dispatcher, context);
|