Skip to content

Commit

Permalink
Correctly handle empty whitelists
Browse files Browse the repository at this point in the history
  • Loading branch information
ljfa-ag committed Oct 4, 2015
1 parent 03c09ff commit deddac9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/ljfa/tntutils/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,8 @@ public static void createBlacklistSet() {
logger.debug("Added block to blacklist: %s, mask 0x%X", blockname, metamask);
}
blacklistActive = blackWhiteList.size() != 0;
if(listIsWhitelist && !blacklistActive) //Empty whitelist effectively means no block damage
disableBlockDamage = true;
}

public static void modifyResistances() {
Expand Down

0 comments on commit deddac9

Please sign in to comment.