Skip to content

Commit

Permalink
Fixed check for no-farm setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Torridity committed May 29, 2019
1 parent 779e29e commit 11bcdad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/main/java/de/tor/tribes/util/ServerSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public boolean loadSettings(String pServerID) {

logger.debug(" - reading haul values");
try {
this.haulActive = Integer.parseInt(JDomUtils.getNodeValue(d, "game/hauls")) == 1;
this.haulActive = Integer.parseInt(JDomUtils.getNodeValue(d, "game/hauls")) != 0;
this.haulLimitActive = Integer.parseInt(JDomUtils.getNodeValue(d, "game/farm_limit")) == 1;
this.haulBase = Integer.parseInt(JDomUtils.getNodeValue(d, "game/hauls_base"));
this.haulMax = Integer.parseInt(JDomUtils.getNodeValue(d, "game/hauls_max"));
Expand Down

0 comments on commit 11bcdad

Please sign in to comment.