20 lines
1.0 KiB
Diff
20 lines
1.0 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: MrHua269 <mrhua269@gmail.com>
|
|
Date: Wed, 8 Jul 2026 23:39:10 +0800
|
|
Subject: [PATCH] Add experimental config for command block command execution
|
|
|
|
|
|
diff --git a/net/minecraft/world/level/BaseCommandBlock.java b/net/minecraft/world/level/BaseCommandBlock.java
|
|
index 31f1583f29eebe5e13b5a7ac5116fdafc3592e5c..bc567e04791128cc0b78a234c496cf99d2dd5682 100644
|
|
--- a/net/minecraft/world/level/BaseCommandBlock.java
|
|
+++ b/net/minecraft/world/level/BaseCommandBlock.java
|
|
@@ -91,7 +91,7 @@ public abstract class BaseCommandBlock {
|
|
}
|
|
|
|
public boolean performCommand(final ServerLevel level) {
|
|
- if (true) return false; // Folia - region threading
|
|
+ if (!moe.monnairealms.camellia.config.modules.experiment.CommandConfig.commandBlock) return false; // Folia - region threading // Shiroha - Add experimental config for command block command execution
|
|
if (level.getGameTime() == this.lastExecution) {
|
|
return false;
|
|
}
|