mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
no async file write
This commit is contained in:
parent
478d465cb6
commit
ec75e911bd
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user