From 832ff248bc7432b94073c173dbe26a019c1a51a1 Mon Sep 17 00:00:00 2001 From: ice_iix Date: Sun, 31 Jul 2022 11:33:40 -0700 Subject: [PATCH] world: parse dimension tags --- src/server/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/mod.rs b/src/server/mod.rs index 87b572f..2c1135a 100644 --- a/src/server/mod.rs +++ b/src/server/mod.rs @@ -1062,6 +1062,11 @@ impl Server { &mut self, join: packet::play::clientbound::JoinGame_WorldNames_IsHard_SimDist, ) { + println!("dimension = {:?}", join.dimension); + if let Some(crate::nbt::NamedTag(_, crate::nbt::Tag::Compound(tags))) = join.dimension { + println!("tags = {:?}", tags); + // TODO: min_y + } self.on_game_join(join.gamemode, join.entity_id) } @@ -1069,6 +1074,7 @@ impl Server { &mut self, join: packet::play::clientbound::JoinGame_WorldNames_IsHard, ) { + // TODO: also load dimension tags self.on_game_join(join.gamemode, join.entity_id) }