Commit 4e5d200b authored by S Handley's avatar S Handley

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

parent 875ae6ce
Pipeline #125513217 passed with stages
in 51 minutes and 55 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