Commit 8c2c2cb4 authored by Acrimon's avatar Acrimon

Merge branch 'shandley/fix-dropped-pickup-range' into 'master'

Fix: Make the dropped item collection range match the world item range limit.

See merge request !848
parents f83b2231 4e5d200b
Pipeline #128030187 failed with stages
in 40 minutes and 49 seconds
......@@ -381,7 +381,7 @@ impl PlayState for SessionState {
)
.join()
.filter(|(_, pos, _)| {
pos.0.distance_squared(player_pos.0) < 3.0 * 3.0
pos.0.distance_squared(player_pos.0) < MAX_PICKUP_RANGE_SQR
})
.min_by_key(|(_, pos, _)| {
(pos.0.distance_squared(player_pos.0) * 1000.0) as i32
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment