aboutsummaryrefslogtreecommitdiff
path: root/azalea/src/pathfinder
diff options
context:
space:
mode:
authorUbuntu <github@matdoes.dev>2023-02-10 01:56:45 +0000
committerUbuntu <github@matdoes.dev>2023-02-10 01:56:45 +0000
commit9d4f738d4e66adf0796e163d1c9368aaba906bba (patch)
treeae7b3c7fca0ff054eb67c1311955e9321a37e559 /azalea/src/pathfinder
parent48b2a37aa09f0302b40d0678cdde2703f919ed18 (diff)
downloadazalea-drasl-9d4f738d4e66adf0796e163d1c9368aaba906bba.tar.xz
make blockstate good
Diffstat (limited to 'azalea/src/pathfinder')
-rw-r--r--azalea/src/pathfinder/moves.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/azalea/src/pathfinder/moves.rs b/azalea/src/pathfinder/moves.rs
index 9bb5c7c1..011d8349 100644
--- a/azalea/src/pathfinder/moves.rs
+++ b/azalea/src/pathfinder/moves.rs
@@ -165,12 +165,12 @@ mod tests {
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 0, 0),
- BlockState::Stone,
+ azalea_registry::Block::Stone.into(),
&mut chunk_storage,
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 1, 0),
- BlockState::Air,
+ BlockState::AIR,
&mut chunk_storage,
);
@@ -190,12 +190,12 @@ mod tests {
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 0, 0),
- BlockState::Stone,
+ azalea_registry::Block::Stone.into(),
&mut chunk_storage,
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 1, 0),
- BlockState::Air,
+ BlockState::AIR,
&mut chunk_storage,
);
@@ -215,22 +215,22 @@ mod tests {
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 0, 0),
- BlockState::Stone,
+ azalea_registry::Block::Stone.into(),
&mut chunk_storage,
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 1, 0),
- BlockState::Air,
+ BlockState::AIR,
&mut chunk_storage,
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 2, 0),
- BlockState::Air,
+ BlockState::AIR,
&mut chunk_storage,
);
partial_world.chunks.set_block_state(
&BlockPos::new(0, 3, 0),
- BlockState::Air,
+ BlockState::AIR,
&mut chunk_storage,
);