Fix compat error

This commit is contained in:
CocoTheOwner 2021-01-30 16:34:08 +01:00
parent 11a484714a
commit 4e670f85f5

View File

@ -150,14 +150,18 @@ public class Iris extends VolmitPlugin
{
instance = this;
if (!new File("compat.json").exists()) {
msg("Creating Compat file.");
msg("Creating Compat file");
try {
new File("compat.json").createNewFile();
} catch (IOException e) {
e.printStackTrace();
msg("Could not forcefully initiate Compat");
}
}
compat = IrisCompat.configured(getDataFile("compat.json"));
try {
compat = IrisCompat.configured(getDataFile("compat.json"));
} catch (Exception e) {
msg("Could not find Compat file despite forceful initiation");
}
proj = new ProjectManager();
convert = new ConversionManager();
wand = new WandManager();