Skip to content

Commit

Permalink
Shrunk bounding box for white latex detection. #1088
Browse files Browse the repository at this point in the history
  • Loading branch information
LtxProgrammer committed Oct 6, 2024
1 parent 7d3b3e6 commit 18cb263
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ static void entityEnterLatex(LivingEntity entity, BlockPos pos) {
}

static boolean isBoundingBoxInWhiteLatex(LivingEntity entity) {
return entity.level.getBlockStates(entity.getBoundingBox()).anyMatch(blockState -> {
return entity.level.getBlockStates(entity.getBoundingBox().inflate(-0.05)).anyMatch(blockState -> {
if (blockState.getBlock() instanceof WhiteLatexTransportInterface transportInterface)
return transportInterface.allowTransport(blockState);
if (blockState.getProperties().contains(COVERED) && blockState.getValue(COVERED) == LatexType.WHITE_LATEX) {
Expand Down

0 comments on commit 18cb263

Please sign in to comment.