Skip to content

Commit

Permalink
Autodab 1.1 config patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Katz committed Dec 13, 2017
1 parent 322b3ab commit 575fa74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/java/pw/_2pi/autogg/autodab/util/ConfigUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ public void load() {
}
String s = builder.toString();
JsonObject asJsonObject = new JsonParser().parse(s).getAsJsonObject();
AutoGG.getInstance().setLength(asJsonObject.get("length").getAsInt());
AutoGG.getInstance().setF5(asJsonObject.get("f5").getAsBoolean());
AutoGG.getInstance().setToggled(asJsonObject.get("toggled").getAsBoolean());
AutoGG.getInstance().toggleChroma(asJsonObject.get("chroma").getAsBoolean());
AutoGG.getInstance().setLength(asJsonObject.has("length") ? asJsonObject.get("length").getAsInt() : 5);
AutoGG.getInstance().setF5(asJsonObject.has("f5") && asJsonObject.get("f5").getAsBoolean());
AutoGG.getInstance().setToggled(asJsonObject.has("toggled") && asJsonObject.get("toggled").getAsBoolean());
AutoGG.getInstance().toggleChroma(asJsonObject.has("chroma") && asJsonObject.get("chroma").getAsBoolean());

} catch (Exception e) {

Expand Down

0 comments on commit 575fa74

Please sign in to comment.