mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-19 10:43:14 +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;
|
instance = this;
|
||||||
if (!new File("compat.json").exists()) {
|
if (!new File("compat.json").exists()) {
|
||||||
msg("Creating Compat file.")
|
msg("Creating Compat file.");
|
||||||
|
try {
|
||||||
new File("compat.json").createNewFile();
|
new File("compat.json").createNewFile();
|
||||||
|
} catch (IOException e) {
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
compat = IrisCompat.configured(getDataFile("compat.json"));
|
compat = IrisCompat.configured(getDataFile("compat.json"));
|
||||||
proj = new ProjectManager();
|
proj = new ProjectManager();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user