Skip to content

Commit

Permalink
Merge pull request #3579 from Lignium/fix/update-lighting-flag
Browse files Browse the repository at this point in the history
Disable lighting updates when using BlockChangeFlags#NONE
  • Loading branch information
gabizou authored Jan 9, 2022
2 parents b753605 + 79d5a18 commit 58fe5c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/main/java/org/spongepowered/common/util/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -998,6 +998,7 @@ public static final class BlockChangeFlags {
| Constants.BlockChangeFlags.DENY_NEIGHBOR_SHAPE_UPDATE
| Constants.BlockChangeFlags.NEIGHBOR_DROPS
| Constants.BlockChangeFlags.PATHFINDING_UPDATES
| Constants.BlockChangeFlags.LIGHTING_UPDATES
;


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void verifyNoneFlag() {
assertFalse(none.updateNeighboringShapes());
assertFalse(none.neighborDropsAllowed());
assertFalse(none.movingBlocks());
assertTrue(none.updateLighting());
assertFalse(none.updateLighting());
assertFalse(none.performBlockPhysics());
assertFalse(none.notifyPathfinding());
}
Expand Down Expand Up @@ -299,4 +299,4 @@ void verifyNestedNeighborPhysics() {
}


}
}

0 comments on commit 58fe5c2

Please sign in to comment.