world: parse dimension tags

This commit is contained in:
ice_iix 2022-07-31 11:33:40 -07:00
parent f945b3b6b6
commit 832ff248bc
1 changed files with 6 additions and 0 deletions

View File

@ -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)
}