Skip to content

Commit

Permalink
Fix return statement
Browse files Browse the repository at this point in the history
  • Loading branch information
temp1011 committed Feb 3, 2018
1 parent bb7a42d commit 211ab56
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/forestry/apiculture/HiveConfig.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static boolean isDimAllowed(int dimId) { //blacklist has priority
if(blacklistedDims.isEmpty() || !blacklistedDims.contains(dimId)) {
return whitelistedDims.isEmpty() || whitelistedDims.contains(dimId);
}
return true;
return false;
}

public static void addBlacklistedDim(int dimId) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/forestry/core/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,14 +181,14 @@ public static boolean isValidOreDim(int dimID) { //blacklist has priority
if(blacklistedOreDims.isEmpty() || !blacklistedOreDims.contains(dimID)) {
return whitelistedOreDims.isEmpty() || whitelistedOreDims.contains(dimID);
}
return true;
return false;
}

public static boolean isValidTreeDim(int dimID) { //blacklist has priority
if(blacklistedTreeDims.isEmpty() || !blacklistedTreeDims.contains(dimID)) {
return whitelistedTreeDims.isEmpty() || whitelistedTreeDims.contains(dimID);
}
return true;
return false;
}

public static void load(Side side) {
Expand Down

0 comments on commit 211ab56

Please sign in to comment.