aboutsummaryrefslogtreecommitdiff
path: root/server/editor/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/editor/src/main.rs')
-rw-r--r--server/editor/src/main.rs16
1 files changed, 7 insertions, 9 deletions
diff --git a/server/editor/src/main.rs b/server/editor/src/main.rs
index 0f0dcab3..5d2c06ea 100644
--- a/server/editor/src/main.rs
+++ b/server/editor/src/main.rs
@@ -141,15 +141,13 @@ async fn handle_conn(
minor: VERSION.1,
supports_bincode: false,
});
- state.out.push(PacketC::GameData {
- data: Box::new(Gamedata {
- tile_collide: (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()
- }),
- });
+ state.out.push(PacketC::GameData(Gamedata {
+ tile_collide: (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()
+ }));
state.out.push(PacketC::SetIngame {
state: true,
lobby: false, // very ironic