2021-06-11 12:02:28 +00:00
|
|
|
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/dedicated/DedicatedServerProperties.java b/src/main/java/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
2022-07-27 20:46:05 +00:00
|
|
|
index 1e01277448a3cf2b2045b54b182166a66c822e20..a32cfa75a9bea896f558bab646d0868391b069a9 100644
|
2021-06-11 12:02:28 +00:00
|
|
|
--- a/src/main/java/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/dedicated/DedicatedServerProperties.java
|
2022-06-08 05:02:19 +00:00
|
|
|
@@ -136,7 +136,7 @@ public class DedicatedServerProperties extends Settings<DedicatedServerPropertie
|
2021-06-11 12:02:28 +00:00
|
|
|
this.maxWorldSize = this.get("max-world-size", (integer) -> {
|
2021-11-24 12:30:55 +00:00
|
|
|
return Mth.clamp(integer, (int) 1, 29999984);
|
2021-06-11 12:02:28 +00:00
|
|
|
}, 29999984);
|
|
|
|
- this.syncChunkWrites = this.get("sync-chunk-writes", true);
|
|
|
|
+ this.syncChunkWrites = this.get("sync-chunk-writes", true) && Boolean.getBoolean("Paper.enable-sync-chunk-writes"); // Paper - hide behind flag
|
|
|
|
this.enableJmxMonitoring = this.get("enable-jmx-monitoring", false);
|
|
|
|
this.enableStatus = this.get("enable-status", true);
|
2021-11-24 12:30:55 +00:00
|
|
|
this.hideOnlinePlayers = this.get("hide-online-players", false);
|