diff options
| author | metamuffin <metamuffin@disroot.org> | 2025-12-16 01:12:16 +0100 |
|---|---|---|
| committer | metamuffin <metamuffin@disroot.org> | 2025-12-16 01:12:16 +0100 |
| commit | c1b9bbb5e76b88e803ba833c16337d528c1dd7be (patch) | |
| tree | 93761c5f4189ece758923cab3bd2388bbcf18a8c /server | |
| parent | e2efb15aa58477d898f92c8959242c0da3ce62bc (diff) | |
| download | hurrycurry-c1b9bbb5e76b88e803ba833c16337d528c1dd7be.tar hurrycurry-c1b9bbb5e76b88e803ba833c16337d528c1dd7be.tar.bz2 hurrycurry-c1b9bbb5e76b88e803ba833c16337d528c1dd7be.tar.zst | |
Rename effect packet for compatiblity with older clients
Diffstat (limited to 'server')
| -rw-r--r-- | server/protocol/Cargo.toml | 2 | ||||
| -rw-r--r-- | server/protocol/src/lib.rs | 2 | ||||
| -rw-r--r-- | server/src/commands.rs | 2 | ||||
| -rw-r--r-- | server/src/entity/demand_sink.rs | 2 | ||||
| -rw-r--r-- | server/src/server.rs | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/server/protocol/Cargo.toml b/server/protocol/Cargo.toml index 520db1ef..f439f4fd 100644 --- a/server/protocol/Cargo.toml +++ b/server/protocol/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "hurrycurry-protocol" -version = "12.1.0" +version = "12.0.0" edition = "2024" [dependencies] diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index 1fbb5e03..d7cd2cd9 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -267,7 +267,7 @@ pub enum PacketC { message: Option<Message>, timeout: Option<MessageTimeout>, }, - Effect { + Effect2 { name: String, location: ItemLocation, }, diff --git a/server/src/commands.rs b/server/src/commands.rs index 7b3ce48d..6aba5f8f 100644 --- a/server/src/commands.rs +++ b/server/src/commands.rs @@ -275,7 +275,7 @@ impl Server { }), Command::Effect { name } => { self.broadcast - .send(PacketC::Effect { + .send(PacketC::Effect2 { name, location: ItemLocation::Player(player, Hand(0)), }) diff --git a/server/src/entity/demand_sink.rs b/server/src/entity/demand_sink.rs index 2955e444..173d166b 100644 --- a/server/src/entity/demand_sink.rs +++ b/server/src/entity/demand_sink.rs @@ -36,7 +36,7 @@ impl Entity for DemandSink { c.game.score.demands_completed += 1; c.game.score.points += demand.points; *c.score_changed = true; - c.packet_out.push_back(PacketC::Effect { + c.packet_out.push_back(PacketC::Effect2 { name: "satisfied".to_string(), location: ItemLocation::Tile(self.pos), }); diff --git a/server/src/server.rs b/server/src/server.rs index afeda492..b2597bc6 100644 --- a/server/src/server.rs +++ b/server/src/server.rs @@ -494,7 +494,7 @@ impl Server { .push_back(PacketC::RemovePlayer { id: player }) } PacketS::Effect { player, name } => { - self.packet_out.push_back(PacketC::Effect { + self.packet_out.push_back(PacketC::Effect2 { name, location: ItemLocation::Player(player, Hand(0)), }); |