9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-27 11:09:06 +00:00

no async file write

This commit is contained in:
CocoTheOwner
2021-08-07 20:10:30 +02:00
parent 478d465cb6
commit ec75e911bd

View File

@@ -30,6 +30,7 @@ import org.bukkit.Material;
import org.bukkit.block.data.BlockData;
import java.io.File;
import java.io.IOException;
@Data
public class IrisCompat {
@@ -155,7 +156,12 @@ public class IrisCompat {
J.attemptAsync(() -> IO.writeAll(new File(f.getParentFile(), "compat.default.json"), defa));
if (!f.exists()) {
J.attemptAsync(() -> IO.writeAll(f, defa));
try {
IO.writeAll(f, defa);
} catch (IOException e) {
Iris.error("Failed to write to compat file");
Iris.reportError(e);
}
}
try {