forked from virt-mirrors/Sit
changed blacklisted blocks into a customblock list
This commit is contained in:
parent
6609800f88
commit
ed86b67c18
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue