mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 05:47:45 +01:00
Remove comment and fix build }}}}}
This commit is contained in:
parent
4e74c43218
commit
50277c2ceb
@ -75,7 +75,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public void c(boolean asyncSave) {
|
||||
+ // Paper end
|
||||
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;
|
||||
|
||||
@ -85,7 +85,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
IOUtils.closeQuietly(bufferedwriter);
|
||||
}
|
||||
+ // Paper start
|
||||
+ }};
|
||||
+ };
|
||||
+ if (asyncSave) {
|
||||
+ MCUtil.scheduleAsyncTask(save);
|
||||
+ } else {
|
||||
|
Loading…
Reference in New Issue
Block a user