mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2025-02-10 20:25:03 +01:00
Asking permission
- Check BlockState#canOcclude in light storage - Should fix issues with framed glass blocks
This commit is contained in:
parent
92fff518cd
commit
77cd4fb898
1 changed files with 2 additions and 3 deletions
|
@ -250,10 +250,9 @@ public class LightStorage implements Effect {
|
||||||
for (int x = -1; x < 17; x++) {
|
for (int x = -1; x < 17; x++) {
|
||||||
blockPos.set(xMin + x, yMin + y, zMin + z);
|
blockPos.set(xMin + x, yMin + y, zMin + z);
|
||||||
|
|
||||||
boolean isFullBlock = level.getBlockState(blockPos)
|
var blockState = level.getBlockState(blockPos);
|
||||||
.isCollisionShapeFullBlock(level, blockPos);
|
|
||||||
|
|
||||||
if (isFullBlock) {
|
if (blockState.canOcclude() && blockState.isCollisionShapeFullBlock(level, blockPos)) {
|
||||||
bitSet.set(index);
|
bitSet.set(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue