diff options
| author | mat <github@matdoes.dev> | 2022-05-14 15:02:13 -0500 |
|---|---|---|
| committer | mat <github@matdoes.dev> | 2022-05-14 15:02:13 -0500 |
| commit | e58c9390a717517db0bf4366c55a3802c832b144 (patch) | |
| tree | a55bdc2d8fe40786ce475cc6c124134b419f3aa6 /azalea-client/src | |
| parent | 6d2fd8afbad44bbe88f701e1d67cc2f251246c07 (diff) | |
| download | azalea-drasl-e58c9390a717517db0bf4366c55a3802c832b144.tar.xz | |
get_block_state works
Diffstat (limited to 'azalea-client/src')
| -rwxr-xr-x | azalea-client/src/connect.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/azalea-client/src/connect.rs b/azalea-client/src/connect.rs index 522d7d48..8d2e9dc1 100755 --- a/azalea-client/src/connect.rs +++ b/azalea-client/src/connect.rs @@ -195,9 +195,17 @@ impl Client { .expect("height tag is not int")) .try_into() .expect("height is not a u32"); + let min_y = (*dimension_type + .get("min_y") + .expect("No min_y tag") + .as_int() + .expect("min_y tag is not int")) + .try_into() + .expect("min_y is not an i32"); state.world = Some(World { height, + min_y, storage: ChunkStorage::new(16), }); |
