Skip to content

Commit

Permalink
fix: empty space search incorrectly returning space as fully occupied…
Browse files Browse the repository at this point in the history
… when completely empty

Affects #525
  • Loading branch information
2No2Name committed Jun 18, 2024
1 parent 382b871 commit e30a7ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public Optional<Vec3d> findClosestCollision(@Nullable Entity collidingEntity, Vo

List<VoxelShape> blockCollisions = LithiumEntityCollisions.getBlockCollisions((World) (Object) this, collidingEntity, searchBox);
if (blockCollisions.isEmpty()) {
return Optional.empty();
return collidingShape.getClosestPointTo(originalPosition);
}
WorldBorder worldBorder = this.getWorldBorder();
if (worldBorder != null) {
Expand Down

0 comments on commit e30a7ae

Please sign in to comment.