mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Prevent IOException when creating new compat file
This commit is contained in:
parent
5003f69e8e
commit
1b0ed90a54
@ -151,8 +151,12 @@ public class Iris extends VolmitPlugin
|
||||
{
|
||||
instance = this;
|
||||
if (!new File("compat.json").exists()) {
|
||||
msg("Creating Compat file.")
|
||||
new File("compat.json").createNewFile();
|
||||
msg("Creating Compat file.");
|
||||
try {
|
||||
new File("compat.json").createNewFile();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
compat = IrisCompat.configured(getDataFile("compat.json"));
|
||||
proj = new ProjectManager();
|
||||
|
Loading…
x
Reference in New Issue
Block a user