diff options
Diffstat (limited to 'pixel-client/src/game.rs')
-rw-r--r-- | pixel-client/src/game.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pixel-client/src/game.rs b/pixel-client/src/game.rs index cfac7082..e299cf09 100644 --- a/pixel-client/src/game.rs +++ b/pixel-client/src/game.rs @@ -204,7 +204,7 @@ impl Game { self.players_spatial_index.all(|p1, pos1| { self.players_spatial_index.query(pos1, 2., |p2, _pos2| { if p1 != p2 { - if let [Some(a), Some(b)] = self.players.get_many_mut([&p1, &p2]) { + if let [Some(a), Some(b)] = self.players.get_disjoint_mut([&p1, &p2]) { a.movement.collide(&mut b.movement, dt) } } |