Skip to content

Commit

Permalink
chunk/light.go: Fixed unchanged iterator range.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sandertv committed Nov 24, 2024
1 parent 6d34bd4 commit 5ae07a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/world/chunk/light.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func (a *lightArea) propagate(queue *list.List) {
}
a.setLight(n.pos, n.lt, n.level)

for _, neighbour := range a.neighbours(n) {
for neighbour := range a.neighbours(n) {
filter := a.highest(neighbour.pos, FilteringBlocks) + 1
if n.level > filter && a.light(neighbour.pos, n.lt) < n.level-filter {
neighbour.level = n.level - filter
Expand Down

0 comments on commit 5ae07a2

Please sign in to comment.