1
0
forked from xjboss/KCauldronX

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(); Properties p = new Properties();
p.load(KCauldron.class p.load(KCauldron.class
.getResourceAsStream("/fmlversion.properties")); .getResourceAsStream("/fmlversion.properties"));
revision = Integer.parseInt(String.valueOf(p.getOrDefault( revision = Integer.parseInt(String.valueOf(p.getProperty(
"fmlbuild.build.number", "0"))); "fmlbuild.build.number", "0")));
} catch (Exception e) { } catch (Exception e) {
} }