Don't tick empty worlds (#9025)
This commit is contained in:
@ -1843,6 +1843,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+
|
+
|
||||||
+ public class UnsupportedSettings extends ConfigurationPart {
|
+ public class UnsupportedSettings extends ConfigurationPart {
|
||||||
+ public boolean fixInvulnerableEndCrystalExploit = true;
|
+ public boolean fixInvulnerableEndCrystalExploit = true;
|
||||||
|
+ public boolean disableWorldTickingWhenEmpty = false;
|
||||||
+ }
|
+ }
|
||||||
+
|
+
|
||||||
+ public Hopper hopper;
|
+ public Hopper hopper;
|
||||||
|
|||||||
19
patches/server/disable-forced-empty-world-ticks.patch
Normal file
19
patches/server/disable-forced-empty-world-ticks.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Shane Freeder <theboyetronic@gmail.com>
|
||||||
|
Date: Tue, 21 Mar 2023 23:51:46 +0000
|
||||||
|
Subject: [PATCH] disable forced empty world ticks
|
||||||
|
|
||||||
|
|
||||||
|
diff --git a/src/main/java/net/minecraft/server/level/ServerLevel.java b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
||||||
|
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
||||||
|
--- a/src/main/java/net/minecraft/server/level/ServerLevel.java
|
||||||
|
+++ b/src/main/java/net/minecraft/server/level/ServerLevel.java
|
||||||
|
@@ -0,0 +0,0 @@ public class ServerLevel extends Level implements WorldGenLevel {
|
||||||
|
|
||||||
|
this.handlingTick = false;
|
||||||
|
gameprofilerfiller.pop();
|
||||||
|
- boolean flag1 = true || !this.players.isEmpty() || !this.getForcedChunks().isEmpty(); // CraftBukkit - this prevents entity cleanup, other issues on servers with no players
|
||||||
|
+ boolean flag1 = !paperConfig().unsupportedSettings.disableWorldTickingWhenEmpty || !this.players.isEmpty() || !this.getForcedChunks().isEmpty(); // CraftBukkit - this prevents entity cleanup, other issues on servers with no players // Paper - restore this
|
||||||
|
|
||||||
|
if (flag1) {
|
||||||
|
this.resetEmptyTime();
|
||||||
Reference in New Issue
Block a user