mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fix: Make the dropped item collection range match the world item range limit.
This commit is contained in:
parent
875ae6cedd
commit
4e5d200b70
@ -381,7 +381,7 @@ impl PlayState for SessionState {
|
|||||||
)
|
)
|
||||||
.join()
|
.join()
|
||||||
.filter(|(_, pos, _)| {
|
.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, _)| {
|
.min_by_key(|(_, pos, _)| {
|
||||||
(pos.0.distance_squared(player_pos.0) * 1000.0) as i32
|
(pos.0.distance_squared(player_pos.0) * 1000.0) as i32
|
||||||
|
Loading…
Reference in New Issue
Block a user