Asking permission

- Check BlockState#canOcclude in light storage
- Should fix issues with framed glass blocks
This commit is contained in:
Jozufozu 2025-02-03 20:31:13 -08:00
parent 92fff518cd
commit 77cd4fb898

View file

@ -250,10 +250,9 @@ public class LightStorage implements Effect {
for (int x = -1; x < 17; x++) {
blockPos.set(xMin + x, yMin + y, zMin + z);
boolean isFullBlock = level.getBlockState(blockPos)
.isCollisionShapeFullBlock(level, blockPos);
var blockState = level.getBlockState(blockPos);
if (isFullBlock) {
if (blockState.canOcclude() && blockState.isCollisionShapeFullBlock(level, blockPos)) {
bitSet.set(index);
}