mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-23 00:42:05 +01:00
21 lines
1 KiB
Diff
21 lines
1 KiB
Diff
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||
|
From: Spottedleaf <Spottedleaf@users.noreply.github.com>
|
||
|
Date: Mon, 5 Aug 2019 08:24:01 -0700
|
||
|
Subject: [PATCH] Preserve old flush on save flag for reliable regionfiles
|
||
|
|
||
|
Originally this patch was in paper
|
||
|
|
||
|
diff --git a/src/main/java/net/minecraft/server/RegionFile.java b/src/main/java/net/minecraft/server/RegionFile.java
|
||
|
index e6e412b7c1..b4c191d538 100644
|
||
|
--- a/src/main/java/net/minecraft/server/RegionFile.java
|
||
|
+++ b/src/main/java/net/minecraft/server/RegionFile.java
|
||
|
@@ -0,0 +0,0 @@ public class RegionFile implements AutoCloseable {
|
||
|
}
|
||
|
|
||
|
// Spigot start - Make region files reliable
|
||
|
- private static final boolean FLUSH_ON_SAVE = Boolean.getBoolean("spigot.flush-on-save");
|
||
|
+ private static final boolean FLUSH_ON_SAVE = Boolean.getBoolean("spigot.flush-on-save") || Boolean.getBoolean("paper.flush-on-save"); // Paper - preserve old flag
|
||
|
private void syncRegionFile() throws IOException {
|
||
|
if (!FLUSH_ON_SAVE) {
|
||
|
return;
|
||
|
--
|