2024-03-03 21:43:00 +01:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
|
From: Gero <gecam59@gmail.com>
|
|
|
|
Date: Mon, 19 Feb 2024 17:39:59 +0100
|
|
|
|
Subject: [PATCH] Configurable max block/fluid ticks
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2024-10-24 15:53:28 +02:00
|
|
|
index 3f0e5bd457e3231d84b9d14396d8d8859989f3f4..2aa4437a76d29cdd793680734a36a41c6133ab91 100644
|
2024-03-03 21:43:00 +01:00
|
|
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
2024-10-24 15:53:28 +02:00
|
|
|
@@ -492,9 +492,9 @@ public class ServerLevel extends Level implements ServerEntityGetter, WorldGenLe
|
2024-03-03 21:43:00 +01:00
|
|
|
if (!this.isDebug() && flag) {
|
|
|
|
j = this.getGameTime();
|
|
|
|
gameprofilerfiller.push("blockTicks");
|
|
|
|
- this.blockTicks.tick(j, 65536, this::tickBlock);
|
|
|
|
+ this.blockTicks.tick(j, paperConfig().environment.maxBlockTicks, this::tickBlock); // Paper - configurable max block ticks
|
|
|
|
gameprofilerfiller.popPush("fluidTicks");
|
|
|
|
- this.fluidTicks.tick(j, 65536, this::tickFluid);
|
|
|
|
+ this.fluidTicks.tick(j, paperConfig().environment.maxFluidTicks, this::tickFluid); // Paper - configurable max fluid ticks
|
|
|
|
gameprofilerfiller.pop();
|
|
|
|
}
|
|
|
|
this.timings.scheduledBlocks.stopTiming(); // Paper
|