mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
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:
commit
8c2c2cb430
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user