diff options
Diffstat (limited to 'server/editor/src')
-rw-r--r-- | server/editor/src/main.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/editor/src/main.rs b/server/editor/src/main.rs index 506d79cf..5fb8f1a4 100644 --- a/server/editor/src/main.rs +++ b/server/editor/src/main.rs @@ -13,7 +13,7 @@ use hurrycurry_protocol::{ use log::{debug, info, warn}; use save::{export_state, import_state}; use std::{ - collections::{HashMap, HashSet}, + collections::{BTreeMap, HashMap, HashSet}, fs::{File, read_to_string}, io::Write, net::SocketAddr, @@ -143,8 +143,8 @@ async fn handle_conn( }); state.out.push(PacketC::Data { data: Gamedata { - tile_collide: TILES.iter().map(|_| false).collect(), - tile_interact: TILES.iter().map(|_| true).collect(), + tile_walkable: (0..TILES.len()).map(TileIndex).collect(), + tile_placeable_items: BTreeMap::new(), tile_names: TILES.iter().map(|(name, _, _)| name.to_string()).collect(), current_map: "editor".to_owned(), ..Default::default() |