aboutsummaryrefslogtreecommitdiff
path: root/server/src/entity/tram.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/entity/tram.rs')
-rw-r--r--server/src/entity/tram.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/entity/tram.rs b/server/src/entity/tram.rs
index 2d6aa8c1..20fe8120 100644
--- a/server/src/entity/tram.rs
+++ b/server/src/entity/tram.rs
@@ -17,6 +17,7 @@
*/
use super::{Entity, EntityContext};
use anyhow::Result;
+use hurrycurry_locale::TrError;
use hurrycurry_protocol::{Character, PacketS, PlayerClass, PlayerID, glam::Vec2};
pub struct Tram {
@@ -33,7 +34,7 @@ impl Entity for Tram {
fn finished(&self) -> bool {
false
}
- fn tick(&mut self, c: EntityContext<'_>) -> Result<()> {
+ fn tick(&mut self, c: EntityContext<'_>) -> Result<(), TrError> {
if self.ids.len() < self.length {
let id = c.game.get_unused_player_id();
c.packet_in.push_back(PacketS::Join {