rename to more standard names
This commit is contained in:
parent
6568fc5b77
commit
ed3434e538
1 changed files with 2 additions and 2 deletions
|
@ -67,8 +67,8 @@ pub(super) fn import_text_world(
|
|||
mut player_spawn_oneshot: Res<PlayerSpawnOneshot>,
|
||||
) {
|
||||
let world_string = fs::read_to_string("assets/world.txt").expect("need a world to load");
|
||||
let [info_string, world_string] = &readf("info section\n{}\nworld section\n{}", &world_string)
|
||||
.expect("world does not have sections")[..]
|
||||
let [info_string, world_string] =
|
||||
&readf("header\n{}\nbody\n{}", &world_string).expect("world does not have sections")[..]
|
||||
else {
|
||||
unreachable!()
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue