sorted, not sort
This commit is contained in:
parent
898c4453b6
commit
620b751002
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ class OpGetEntitiesBy(val checker: Predicate<Entity>, val negate: Boolean) : Con
|
|||
null,
|
||||
aabb
|
||||
) { (checker.test(it) != negate) && ctx.isEntityInRange(it) && it.distanceToSqr(pos) <= radius * radius }
|
||||
.sortBy { it.distanceToSqr(pos) }
|
||||
.sortedBy { it.distanceToSqr(pos) }
|
||||
return spellListOf(entitiesGot)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue