From 9d4f738d4e66adf0796e163d1c9368aaba906bba Mon Sep 17 00:00:00 2001 From: Ubuntu Date: Fri, 10 Feb 2023 01:56:45 +0000 Subject: make blockstate good --- azalea-world/src/entity/metadata.rs | 2 +- azalea-world/src/entity/mod.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'azalea-world/src/entity') diff --git a/azalea-world/src/entity/metadata.rs b/azalea-world/src/entity/metadata.rs index c95d8c3a..3d6c52c8 100644 --- a/azalea-world/src/entity/metadata.rs +++ b/azalea-world/src/entity/metadata.rs @@ -2368,7 +2368,7 @@ impl Default for EndermanMetadataBundle { }, }, }, - carry_state: CarryState(BlockState::Air), + carry_state: CarryState(BlockState::AIR), creepy: Creepy(false), stared_at: StaredAt(false), } diff --git a/azalea-world/src/entity/mod.rs b/azalea-world/src/entity/mod.rs index 0d0449ac..9b1191fb 100644 --- a/azalea-world/src/entity/mod.rs +++ b/azalea-world/src/entity/mod.rs @@ -94,7 +94,7 @@ pub fn on_pos(offset: f32, chunk_storage: &ChunkStorage, pos: &Position) -> Bloc // TODO: check if block below is a fence, wall, or fence gate let block_pos = pos.down(1); let block_state = chunk_storage.get_block_state(&block_pos); - if block_state == Some(BlockState::Air) { + if block_state == Some(BlockState::AIR) { let block_pos_below = block_pos.down(1); let block_state_below = chunk_storage.get_block_state(&block_pos_below); if let Some(_block_state_below) = block_state_below { -- cgit v1.2.3