3
0

Fix compatibility with jre7 (#73)

This commit is contained in:
Prototik 2015-06-29 19:29:00 +07:00
parent b242db129b
commit c2c4cc3c83

View File

@ -115,7 +115,7 @@ public class KCauldron {
Properties p = new Properties();
p.load(KCauldron.class
.getResourceAsStream("/fmlversion.properties"));
revision = Integer.parseInt(String.valueOf(p.getOrDefault(
revision = Integer.parseInt(String.valueOf(p.getProperty(
"fmlbuild.build.number", "0")));
} catch (Exception e) {
}