Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Fix clear light from
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriTimoz committed Nov 18, 2023
1 parent dbfccb3 commit aa5b002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minecraft-server/src/world/light.rs
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ impl ChunkColumn {
while let Some(position) = to_explore.pop() {
let neighbors = position.get_neighbors(self.light.sky_light.light_arrays.len());
let my_level = self.light.sky_light.get_level(position.clone())?;
let my_is_inside = false; // get it
let my_is_inside = self.get_highest_block_at(&position.clone().into()) + 16 > position.y as u16 + 1;

for neighbor in neighbors {
let neighbor_level = self.light.sky_light.get_level(neighbor.clone()).unwrap();
Expand Down

0 comments on commit aa5b002

Please sign in to comment.