summaryrefslogtreecommitdiff
path: root/src/world.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-09-26 14:05:14 +0200
committertroido <troido@protonmail.com>2020-09-26 14:05:14 +0200
commit9b7e3d14b3f35163199ed704ae35544fa658931e (patch)
tree9ad3623420f34b48f538ff2ceca6e3a277f16758 /src/world.rs
parent450cf9331803532cb0e3a002fec17d12be18abd6 (diff)
spawned entities are now saved but not spawned again until removed
Diffstat (limited to 'src/world.rs')
-rw-r--r--src/world.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/world.rs b/src/world.rs
index b9af6df..24fe392 100644
--- a/src/world.rs
+++ b/src/world.rs
@@ -111,7 +111,7 @@ impl <'a, 'b>World<'a, 'b> {
fn try_add_loaded_player(&mut self, mut state: PlayerState, backups: &[Option<RoomId>]) -> Result<()> {
match self.add_loaded_player(state.clone()){
Err(MigrationError::RoomError(e)) => {
- println!("could not add player {:?} to room {:?}: {:?}", state.id, state.room, e);
+ println!("could not add player {:?} to room {:?}: {}", state.id, state.room, e);
if let Some((first, rest)) = backups.split_first(){
state.room = first.clone();
state.pos = RoomPos::Unknown;