world: parse dimension tags
This commit is contained in:
parent
f945b3b6b6
commit
832ff248bc
|
@ -1062,6 +1062,11 @@ impl Server {
|
||||||
&mut self,
|
&mut self,
|
||||||
join: packet::play::clientbound::JoinGame_WorldNames_IsHard_SimDist,
|
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)
|
self.on_game_join(join.gamemode, join.entity_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1069,6 +1074,7 @@ impl Server {
|
||||||
&mut self,
|
&mut self,
|
||||||
join: packet::play::clientbound::JoinGame_WorldNames_IsHard,
|
join: packet::play::clientbound::JoinGame_WorldNames_IsHard,
|
||||||
) {
|
) {
|
||||||
|
// TODO: also load dimension tags
|
||||||
self.on_game_join(join.gamemode, join.entity_id)
|
self.on_game_join(join.gamemode, join.entity_id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue