Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 12:30:06 +01:00
74f507f4e3
Upstream has released updates that appears 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: e461dcfe #555: Item - add getters/setters for owner/thrower CraftBukkit Changes: 055870c4 #758: Item - add getters/setters for owner/thrower
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 0aa8448d25f743a0d12e4c7f7c9c04fd9d5d0088..23f8e144fc6256bcc71269c03642172f3469fc4b 100644
|
|
--- a/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
|
+++ b/src/main/java/net/minecraft/server/DedicatedServerProperties.java
|
|
@@ -100,7 +100,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) -> {
|