From dce3bab522651ce45c603ca62f3941af5e74210d Mon Sep 17 00:00:00 2001 From: yoyosource Date: Fri, 17 Dec 2021 20:24:49 +0100 Subject: [PATCH] Update TickCommand Signed-off-by: yoyosource --- .../steamwar/bausystem/features/tpslimit/TickCommand.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TickCommand.java b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TickCommand.java index 8e4b7c86..3f64b398 100644 --- a/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TickCommand.java +++ b/BauSystem_Main/src/de/steamwar/bausystem/features/tpslimit/TickCommand.java @@ -96,7 +96,11 @@ public class TickCommand extends SWCommand { }); boolean frozen = FreezeUtils.frozen(); double currentTPSLimit = TPSLimitUtils.currentTPSLimit; - TPSLimitUtils.currentTPSLimit = 240; + if (ticks > 1000) { + TPSLimitUtils.currentTPSLimit = 60; + } else { + TPSLimitUtils.currentTPSLimit = 240; + } TPSLimitUtils.tpsLimiter(); FreezeUtils.unfreeze();