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

This commit is contained in:
Shane Handley 2020-03-12 11:54:23 +09:00
parent 875ae6cedd
commit 4e5d200b70

View File

@ -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