Skip to content

Commit

Permalink
Fix the issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-Khar committed Mar 30, 2022
1 parent 1209637 commit e76d9c1
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,7 @@ protected boolean isTargetPos(WorldView world, BlockPos pos) {
return false;
} else {
BlockState blockState = world.getBlockState(pos);
return blockState.isIn(BlockTags.BEDS, (state) -> {
return (Boolean)state.getOrEmpty(BedBlock.PART).map((part) -> {
return part != BedPart.HEAD;
}).orElse(true);
});
return blockState.isIn(BlockTags.BEDS, (state) -> state.getOrEmpty(BedBlock.PART).map((part) -> part != BedPart.HEAD).orElse(true));
}
}
}

0 comments on commit e76d9c1

Please sign in to comment.