We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a80ff21 commit cee341dCopy full SHA for cee341d
common/src/main/kotlin/com/lambda/util/world/EntityUtils.kt
@@ -25,9 +25,7 @@ object EntityUtils {
25
pos: Vec3d,
26
range: Double,
27
noinline predicate: (T) -> Boolean = { true },
28
- ): T? {
29
- return getFastEntities(pos, range, predicate).firstOrNull { it.pos.squaredDistanceTo(pos) <= range * range }
30
- }
+ ): T? = getFastEntities(pos, range, predicate).firstOrNull { it.pos.squaredDistanceTo(pos) <= range * range }
31
32
/**
33
* Gets all entities of type [T] within a specified distance from a position.
0 commit comments