diff options
Diffstat (limited to 'client/src/world/mod.rs')
-rw-r--r-- | client/src/world/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/world/mod.rs b/client/src/world/mod.rs index 8a16016..7b25a53 100644 --- a/client/src/world/mod.rs +++ b/client/src/world/mod.rs @@ -2,9 +2,9 @@ use self::{map::Map, tee::Tees}; use crate::client::{helper::get_map_path, ClientMesgOut}; use std::fs::File; +pub mod helper; pub mod map; pub mod tee; -pub mod helper; pub use gamenet::enums; @@ -26,7 +26,7 @@ impl World { match m { ClientMesgOut::MapChange { name, crc } => { let file = File::open(get_map_path(name.as_str(), *crc)).unwrap(); - self.map = Map::load(file).unwrap(); + self.map = Map::load(file, name.as_str(), *crc).unwrap(); } _ => (), } |