diff options
Diffstat (limited to 'server/src/customer')
| -rw-r--r-- | server/src/customer/mod.rs | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/server/src/customer/mod.rs b/server/src/customer/mod.rs index 10788206..ba57542c 100644 --- a/server/src/customer/mod.rs +++ b/server/src/customer/mod.rs @@ -220,9 +220,8 @@ impl DemandState {                                      persist: false,                                  },                              )); -                            for edge in [true, false] { -                                packets_out.push((id, PacketS::Interact { pos, edge })) -                            } +                            packets_out.push((id, PacketS::Interact { pos: Some(pos) })); +                            packets_out.push((id, PacketS::Interact { pos: None }));                              p.state = CustomerState::Eating {                                  demand: *demand,                                  target: pos, @@ -244,9 +243,8 @@ impl DemandState {                      if *progress >= 1. {                          packets_out.push((id, PacketS::ReplaceHand { item: demand.to }));                          if demand.to.is_some() { -                            for edge in [true, false] { -                                packets_out.push((id, PacketS::Interact { pos: *target, edge })) -                            } +                            packets_out.push((id, PacketS::Interact { pos: Some(*target) })); +                            packets_out.push((id, PacketS::Interact { pos: None }));                          }                          let path = find_path(                              &self.walkable, | 
