mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-19 06:13:49 -07:00
Remove comment and fix build }}}}}
This commit is contained in:
@@ -75,7 +75,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ public void c(boolean asyncSave) {
|
+ public void c(boolean asyncSave) {
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
String s = this.b.toJson(this.a(org.spigotmc.SpigotConfig.userCacheCap));
|
String s = this.b.toJson(this.a(org.spigotmc.SpigotConfig.userCacheCap));
|
||||||
+ Runnable save = () -> { // Paper - ensure only 1 file is writing at same time by syncing to the FD
|
+ Runnable save = () -> {
|
||||||
+
|
+
|
||||||
BufferedWriter bufferedwriter = null;
|
BufferedWriter bufferedwriter = null;
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
IOUtils.closeQuietly(bufferedwriter);
|
IOUtils.closeQuietly(bufferedwriter);
|
||||||
}
|
}
|
||||||
+ // Paper start
|
+ // Paper start
|
||||||
+ }};
|
+ };
|
||||||
+ if (asyncSave) {
|
+ if (asyncSave) {
|
||||||
+ MCUtil.scheduleAsyncTask(save);
|
+ MCUtil.scheduleAsyncTask(save);
|
||||||
+ } else {
|
+ } else {
|
||||||
|
Reference in New Issue
Block a user