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 veloren/veloren!848
This commit is contained in:
Acrimon 2020-03-19 20:30:09 +00:00
commit 8c2c2cb430

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