diff options
| author | Ubuntu <github@matdoes.dev> | 2022-10-24 18:20:18 +0000 |
|---|---|---|
| committer | Ubuntu <github@matdoes.dev> | 2022-10-24 18:20:18 +0000 |
| commit | 61642f165b6659f7b259bf282614fadd2486b28c (patch) | |
| tree | 7bede60ad6f072e64800b89bee337fd84537673b /azalea-world/src/lib.rs | |
| parent | 3869fd622f7515e934979478c439626981f0cd8a (diff) | |
| download | azalea-drasl-61642f165b6659f7b259bf282614fadd2486b28c.tar.xz | |
fix out of bounds y position
Diffstat (limited to 'azalea-world/src/lib.rs')
| -rw-r--r-- | azalea-world/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azalea-world/src/lib.rs b/azalea-world/src/lib.rs index 08b7ebf4..5fbb7b4d 100644 --- a/azalea-world/src/lib.rs +++ b/azalea-world/src/lib.rs @@ -62,11 +62,11 @@ impl Dimension { } pub fn get_block_state(&self, pos: &BlockPos) -> Option<BlockState> { - self.chunk_storage.get_block_state(pos, self.min_y()) + self.chunk_storage.get_block_state(pos) } pub fn set_block_state(&mut self, pos: &BlockPos, state: BlockState) -> Option<BlockState> { - self.chunk_storage.set_block_state(pos, state, self.min_y()) + self.chunk_storage.set_block_state(pos, state) } pub fn set_entity_pos(&mut self, entity_id: u32, new_pos: Vec3) -> Result<(), MoveEntityError> { |
