changed blacklisted blocks into a customblock list

This commit is contained in:
Oth3r 2024-10-19 17:40:37 -05:00
commit ed86b67c18
2 changed files with 6 additions and 4 deletions

View file

@ -156,7 +156,7 @@ public class Utl {
// only if custom is enabled
if (config.isCustomEnabled()) {
// if the block is on the blacklist, false
if (config.getBlacklistedBlocks().contains(getBlockID(blockState))) return null;
if (config.getBlacklistedBlocks().stream().anyMatch(c -> c.isValid(blockState))) return null;
for (SittingBlock sittingBlock : config.getSittingBlocks()) {
// if the block is valid, true