forked from virt-mirrors/Sit
customblock to sittingblock & customblock base without sitting height
This commit is contained in:
parent
9e77590755
commit
a2a944da2f
5 changed files with 42 additions and 23 deletions
|
@ -180,9 +180,9 @@ public class Utl {
|
|||
// if the block is on the blacklist, false
|
||||
if (config.getBlacklistedBlocks().contains(getBlockID(blockState))) return null;
|
||||
|
||||
for (CustomBlock customBlock : config.getCustomBlocks()) {
|
||||
for (SittingBlock dittingBlock : config.getSittingBlocks()) {
|
||||
// if the block is valid, true
|
||||
if (customBlock.isValid(blockState)) return customBlock.getSittingHeight();
|
||||
if (dittingBlock.isValid(blockState)) return dittingBlock.getSittingHeight();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue