diff options
Diffstat (limited to 'server/src/entity/campaign.rs')
| -rw-r--r-- | server/src/entity/campaign.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/src/entity/campaign.rs b/server/src/entity/campaign.rs index 33baf631..ddbdc3bc 100644 --- a/server/src/entity/campaign.rs +++ b/server/src/entity/campaign.rs @@ -21,7 +21,7 @@ use anyhow::Result; use hurrycurry_data::entities::GateCondition; use hurrycurry_locale::{TrError, trm}; use hurrycurry_protocol::{ - Message, PacketC, PlayerID, TileIndex, + ItemLocation, Message, PacketC, PlayerID, TileIndex, glam::{IVec2, Vec2}, }; @@ -70,10 +70,10 @@ impl Entity for Gate { fn interact( &mut self, c: EntityContext<'_>, - pos: Option<IVec2>, + pos: Option<ItemLocation>, _player: PlayerID, ) -> Result<bool, TrError> { - if !self.unlocked && pos == Some(self.pos) { + if !self.unlocked && pos == Some(ItemLocation::Tile(self.pos)) { c.packet_out.push_back(PacketC::ServerMessage { message: trm!( "s.campaign.unlock_condition", |