Files
Shiroha/shiroha-server/minecraft-patches/features/0048-Add-experimental-config-for-command-block-command-ex.patch
T

20 lines
1.0 KiB
Diff
Raw Normal View History

2026-07-09 00:03:09 +08:00
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
2026-07-14 15:09:17 +08:00
index 31f1583f29eebe5e13b5a7ac5116fdafc3592e5c..8050ab7b4348782456d576b482d2fcb4fce23b25 100644
2026-07-09 00:03:09 +08:00
--- 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
2026-07-14 12:22:17 +08:00
+ if (!io.nanachiyo0721.shiroha.config.modules.experiment.CommandConfig.commandBlock) return false; // Folia - region threading // Shiroha - Add experimental config for command block command execution
2026-07-09 00:03:09 +08:00
if (level.getGameTime() == this.lastExecution) {
return false;
}