summaryrefslogtreecommitdiff
path: root/src/world.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-21 19:22:26 +0100
committertroido <troido@protonmail.com>2020-02-21 19:22:26 +0100
commit4ed2d71e76f04c75a214e43363dc1b64e109fe3d (patch)
tree1ae0375ff74216dacc6f5a2b443b84e85b257059 /src/world.rs
parent60b56b39488f7704f42580363d1343a4dc9732e8 (diff)
used rank in taking objects
Diffstat (limited to 'src/world.rs')
-rw-r--r--src/world.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/world.rs b/src/world.rs
index 7524eee..05e6887 100644
--- a/src/world.rs
+++ b/src/world.rs
@@ -109,14 +109,10 @@ impl <'a, 'b>World<'a, 'b> {
for room in self.rooms.values() {
if let Err(err) = self.persistence.save_room(room.id.clone(), room.save()) {
println!("{:?}",err);
- } else {
- println!("{}", room.save().to_json());
}
for (playerid, state) in room.save_players() {
if let Err(err) = self.persistence.save_player(playerid.clone(), state.clone()) {
println!("{:?}",err);
- } else {
- println!("{:?} {}", playerid, state.to_json());
}
}
}