Skip to content

Commit 6453fed

Browse files
committed
fix: convert absolute to relative
1 parent d4b29e1 commit 6453fed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/world.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,8 @@ impl World {
107107
.read()
108108
.unwrap();
109109

110-
if chunk.block_type_at(&position) == Some(BlockType::Water) {
110+
if chunk.block_type_at(&position.relative_from_absolute()) == Some(BlockType::Water)
111+
{
111112
has_adjacent_water = true;
112113
}
113114
}

0 commit comments

Comments
 (0)