From f6a037faa2b675cd7318d6dd8ccee5133c89845d Mon Sep 17 00:00:00 2001 From: troido Date: Mon, 24 Feb 2020 12:58:43 +0100 Subject: run an update before loading an outdated room --- src/room.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/room.rs') diff --git a/src/room.rs b/src/room.rs index 3856cbd..9b0f33a 100644 --- a/src/room.rs +++ b/src/room.rs @@ -236,6 +236,10 @@ impl <'a, 'b>Room<'a, 'b> { self.world.insert(Emigration::default()); emigrants } + + pub fn get_time(&self) -> i64 { + self.world.fetch::().time + } } -- cgit