diff options
Diffstat (limited to 'server/src/entity/bot.rs')
| -rw-r--r-- | server/src/entity/bot.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/src/entity/bot.rs b/server/src/entity/bot.rs index 78b300b6..9627bb76 100644 --- a/server/src/entity/bot.rs +++ b/server/src/entity/bot.rs @@ -18,7 +18,7 @@ use super::{Entity, EntityContext}; use anyhow::Result; use hurrycurry_bot::{BotAlgo, DynBotAlgo}; -use hurrycurry_protocol::{Character, Hand, PacketS, PlayerClass, PlayerID}; +use hurrycurry_protocol::{Character, Hand, ItemLocation, PacketS, PlayerClass, PlayerID}; use log::debug; use std::any::Any; @@ -71,7 +71,7 @@ impl<T: BotAlgo + Any> Entity for BotDriver<T> { self.interacting = input.interact.is_some(); c.packet_in.push_back(PacketS::Interact { player: self.id, - pos: input.interact, + target: input.interact.map(ItemLocation::Tile), hand: Hand(0), }) } |