customblock to sittingblock & customblock base without sitting height

This commit is contained in:
Oth3r 2024-09-20 22:24:17 -05:00
commit a2a944da2f
5 changed files with 42 additions and 23 deletions

View file

@ -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();
}
}