Hide sync chunk writes behind flag
Dieser Commit ist enthalten in:
Ursprung
c29c36e782
Commit
030f1c1375
23
Spigot-Server-Patches/0520-Hide-sync-chunk-writes-behind-flag.patch
Normale Datei
23
Spigot-Server-Patches/0520-Hide-sync-chunk-writes-behind-flag.patch
Normale Datei
@ -0,0 +1,23 @@
|
||||
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 1122861a8f9c12668e7bd9d65e63fc9166a66d1a..6786fd0947724069366a2375c710ec518a92f2b1 100644
|
||||
--- a/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
||||
+++ b/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
||||
@@ -98,7 +98,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) -> {
|
In neuem Issue referenzieren
Einen Benutzer sperren