Skip to content

Commit

Permalink
Use joinIsNotEmpty
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jul 11, 2023
1 parent 3cd08c4 commit 7884402
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,7 @@ private void noSprintingInPortalHud(CallbackInfoReturnable<Boolean> cir) {
private void noSuffocate(BlockPos pos, CallbackInfoReturnable<Boolean> cir, @Local(ordinal = 1) AABB aabb) {
final VoxelShape cutout = CalledValues.getPortalCutout(this);
if (cutout.isEmpty()) return;
// TODO: Maybe use Shapes.joinIsNotEmpty?
if (!Shapes.joinUnoptimized(Shapes.create(aabb), cutout, BooleanOp.AND).isEmpty()) {
if (Shapes.joinIsNotEmpty(Shapes.create(aabb), cutout, BooleanOp.AND)) {
cir.setReturnValue(false);
}
}
Expand Down

0 comments on commit 7884402

Please sign in to comment.