diff options
Diffstat (limited to 'src/worldloader.rs')
| -rw-r--r-- | src/worldloader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/worldloader.rs b/src/worldloader.rs index 2d7ae69..683a310 100644 --- a/src/worldloader.rs +++ b/src/worldloader.rs @@ -22,7 +22,7 @@ impl WorldLoader { } pub fn load_room(&self, id: RoomId) -> Result<RoomTemplate> { - let fname = id.to_string() + ".json"; + let fname = id.name.splitn(2, '+').next().unwrap().to_string() + ".json"; let path = self.directory.join(fname); let text = fs::read_to_string(path)?; let json: Value = serde_json::from_str(&text)?; |
