diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/protocol/src/lib.rs | 3 | ||||
-rw-r--r-- | server/src/entity/tutorial.rs | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/server/protocol/src/lib.rs b/server/protocol/src/lib.rs index fb6ad46e..4ec2ec37 100644 --- a/server/protocol/src/lib.rs +++ b/server/protocol/src/lib.rs @@ -240,6 +240,9 @@ pub enum PacketC { Environment { effects: HashSet<String>, }, + TutorialEnded { + item: ItemIndex, + }, /// For use in replay sessions only ReplayStart, diff --git a/server/src/entity/tutorial.rs b/server/src/entity/tutorial.rs index 7aa1578a..5ec1281d 100644 --- a/server/src/entity/tutorial.rs +++ b/server/src/entity/tutorial.rs @@ -58,7 +58,9 @@ impl Entity for Tutorial { if hint.is_none() { self.delete_timer -= TARGET_DT; if self.delete_timer <= 0. { - hint = None + hint = None; + c.packet_out + .push_back(PacketC::TutorialEnded { item: self.target }); } else { hint = Some((None, trm!("s.tutorial.finished"))); } |