Skip to content

Commit cee341d

Browse files
committed
one liner
1 parent a80ff21 commit cee341d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

common/src/main/kotlin/com/lambda/util/world/EntityUtils.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ object EntityUtils {
2525
pos: Vec3d,
2626
range: Double,
2727
noinline predicate: (T) -> Boolean = { true },
28-
): T? {
29-
return getFastEntities(pos, range, predicate).firstOrNull { it.pos.squaredDistanceTo(pos) <= range * range }
30-
}
28+
): T? = getFastEntities(pos, range, predicate).firstOrNull { it.pos.squaredDistanceTo(pos) <= range * range }
3129

3230
/**
3331
* Gets all entities of type [T] within a specified distance from a position.

0 commit comments

Comments
 (0)