geforkt von Mirrors/Paper
b31089a929
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: d264e972 #591: Add option for a consumer before spawning an item 1c537fce #590: Add spawn and transform reasons for piglin zombification. CraftBukkit Changes: ee5006d1 #810: Add option for a consumer before spawning an item f6a39d3c #809: Add spawn and transform reasons for piglin zombification. 0c24068a Organise imports Spigot Changes: bff52619 Organise imports
24 Zeilen
1.4 KiB
Diff
24 Zeilen
1.4 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
|
Date: Fri, 26 Jun 2020 22:35:08 -0700
|
|
Subject: [PATCH] Hide sync chunk writes behind flag
|
|
|
|
Syncing writes on each write call has terrible performance
|
|
on harddrives.
|
|
|
|
-DPaper.enable-sync-chunk-writes=true to enable
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DedicatedServerProperties.java b/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
|
index 205d56f88440789df8a028b3827dd388fea56f63..15a4f921b1ae2bbc66b7d58238b60151123a7eb3 100644
|
|
--- a/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
|
+++ b/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
|
@@ -105,7 +105,7 @@ public class DedicatedServerProperties extends PropertyManager<DedicatedServerPr
|
|
this.maxWorldSize = this.a("max-world-size", (integer) -> {
|
|
return MathHelper.clamp(integer, 1, 29999984);
|
|
}, 29999984);
|
|
- this.syncChunkWrites = this.getBoolean("sync-chunk-writes", true);
|
|
+ this.syncChunkWrites = this.getBoolean("sync-chunk-writes", true) && Boolean.getBoolean("Paper.enable-sync-chunk-writes"); // Paper - hide behind flag
|
|
this.enableJmxMonitoring = this.getBoolean("enable-jmx-monitoring", false);
|
|
this.enableStatus = this.getBoolean("enable-status", true);
|
|
this.entityBroadcastRangePercentage = this.a("entity-broadcast-range-percentage", (integer) -> {
|