Skip to content

Commit 95c61b8

Browse files
committed
chore: remove printTpsInfoWhenCantKeepUp
1 parent 868579a commit 95c61b8

File tree

4 files changed

+5
-64
lines changed

4 files changed

+5
-64
lines changed

src/main/java/io/github/optijava/opt_carpet_addition/OptCarpetSettings.java

+3-7
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,9 @@ public class OptCarpetSettings {
221221
@Rule(
222222
desc = "The rate limit of `/player xxx tp` command. Default: permit 1 request per 2 seconds per player.",
223223
category = RuleCategory.FEATURE,
224-
validate = PlayerTpRateLimitTimeValidator.class
224+
validate = PlayerTpRateLimitTimeValidator.class,
225+
strict = false,
226+
options = {"2"}
225227
)
226228
public static int playerTpRateLimitTime = 2;
227229

@@ -231,10 +233,4 @@ public class OptCarpetSettings {
231233
options = {"true", "false", "ops"}
232234
)
233235
public static String commandLoggerBroadcastToPlayer = FALSE;
234-
235-
@Rule(
236-
desc = "Append tps information in `cant keep up!` logs.",
237-
category = RuleCategory.FEATURE
238-
)
239-
public static boolean printTpsInfoWhenCantKeepUp = false;
240236
}

src/main/java/io/github/optijava/opt_carpet_addition/mixins/rule/printTpsInfoWhenCantKeepUp/MinecraftServer_Mixin.java

-54
This file was deleted.

src/main/java/io/github/optijava/opt_carpet_addition/mixins/rule/removeBats/BatEntity_Mixin.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public class BatEntity_Mixin {
2020
at = @At("HEAD"),
2121
cancellable = true
2222
)
23-
//#if MC >= 12004
23+
//#if MC >= 11900
2424
//$$ private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, net.minecraft.util.math.random.Random random, CallbackInfoReturnable<Boolean> cir) {
2525
//#else
2626
private static void injectCanSpawn(EntityType<BatEntity> type, WorldAccess world, SpawnReason spawnReason, BlockPos pos, Random random, CallbackInfoReturnable<Boolean> cir) {

src/main/resources/opt-carpet-addition.mixins.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,7 @@
4949
//#endif
5050
"rule.customItemDiscardTime.ItemEntity_Mixin",
5151
"logger.blockUpdate.LoggerRegistry_Mixin",
52-
"rule.removeBats.BatEntity_Mixin",
53-
"rule.printTpsInfoWhenCantKeepUp.MinecraftServer_Mixin"
52+
"rule.removeBats.BatEntity_Mixin"
5453
],
5554
"client": [
5655
"rule.unescapeChatMessage.ChatMessageC2SPacket_Mixin",

0 commit comments

Comments
 (0)