Skip to content

Commit

Permalink
Added ability to exclude specific block types in blacklist (implements
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelli committed Jan 5, 2024
1 parent 172c644 commit 7c61a33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ else if (checkType.equals(Material.AIR) || checkType.equals(Material.CAVE_AIR))
return;
}

if (ConfigHandler.blacklist.get(checkType.getKey().toString()) != null) {
return;
}

if (!user.startsWith("#")) {
CacheHandler.spreadCache.remove(location);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ else if (forceType != null && !type.equals(forceType)) {
return;
}

if (ConfigHandler.blacklist.get(type.getKey().toString()) != null) {
return;
}

int x = block.getX();
int y = block.getY();
int z = block.getZ();
Expand Down

0 comments on commit 7c61a33

Please sign in to comment.