Skip to content

Commit

Permalink
fix cross mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andi-makes committed May 11, 2024
1 parent e4cdbd0 commit 68ff972
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ public void beforeCompute(BufferBuilder builder) {
@Override
public void compute(ClientLevel world, BlockPos pos, BufferBuilder builder) {
BlockState blockState = world.getBlockState(pos);
if (!LightyHelper.isBlocked(world.getBlockState(pos.below()), pos, world)) {
int blockLightLevel = world.getBrightness(LightLayer.BLOCK, pos);
int skyLightLevel = world.getBrightness(LightLayer.SKY, pos);
if (!LightyHelper.isBlocked(blockState, pos, world)) {
int blockLightLevel = world.getBrightness(LightLayer.BLOCK, pos.above());
int skyLightLevel = world.getBrightness(LightLayer.SKY, pos.above());

if (LightyHelper.isSafe(blockLightLevel) && !Config.getShowSafe()) {
return;
Expand All @@ -59,7 +59,7 @@ public void compute(ClientLevel world, BlockPos pos, BufferBuilder builder) {

float x1 = pos.getX();
float x2 = pos.getX() + 1f;
float y = pos.getY() + 0.005f + offset;
float y = pos.getY() + 1.005f + offset;
float z1 = pos.getZ();
float z2 = pos.getZ() + 1f;

Expand Down

0 comments on commit 68ff972

Please sign in to comment.