aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity/bot.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2024-12-23 15:37:11 +0100
committermetamuffin <metamuffin@disroot.org>2024-12-25 20:01:20 +0100
commitb0df9b7c27a3d6316969d7feff4d912c3abf99f6 (patch)
tree118daa57feda8b571bd00bd22f6ff0dac4cc46de /server/src/entity/bot.rs
parent2ceeea0e5fc245602618ec47f6ff1f91a094e130 (diff)
downloadhurrycurry-b0df9b7c27a3d6316969d7feff4d912c3abf99f6.tar
hurrycurry-b0df9b7c27a3d6316969d7feff4d912c3abf99f6.tar.bz2
hurrycurry-b0df9b7c27a3d6316969d7feff4d912c3abf99f6.tar.zst
two-handed server
Diffstat (limited to 'server/src/entity/bot.rs')
-rw-r--r--server/src/entity/bot.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/entity/bot.rs b/server/src/entity/bot.rs
index fe4d711f..368f8c9d 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::{PacketS, PlayerClass, PlayerID};
+use hurrycurry_protocol::{Hand, PacketS, PlayerClass, PlayerID};
use log::info;
use rand::random;
use std::any::Any;
@@ -72,6 +72,7 @@ impl<T: BotAlgo + Any> Entity for BotDriver<T> {
c.packet_in.push_back(PacketS::Interact {
player: self.id,
pos: input.interact,
+ hand: Hand::Left,
})
}
c.packet_in.push_back(PacketS::Movement {