diff --git a/src/main/java/net/minecraftforge/client/model/lighting/FlatQuadLighter.java b/src/main/java/net/minecraftforge/client/model/lighting/FlatQuadLighter.java index 2e6ddc66b6..94d54499f5 100644 --- a/src/main/java/net/minecraftforge/client/model/lighting/FlatQuadLighter.java +++ b/src/main/java/net/minecraftforge/client/model/lighting/FlatQuadLighter.java @@ -38,7 +38,7 @@ public class FlatQuadLighter extends QuadLighter isFullCube = Block.isShapeFullBlock(state.getCollisionShape(level, pos)); for (Direction side : SIDES) { - packedLight[side.ordinal()] = getLightColor(level, pos.relative(side), state); + packedLight[side.ordinal()] = LevelRenderer.getLightColor(level, state, pos.relative(side)); } //Note: We can just use the LevelRenderer method as we know the state is the state at the given position packedLight[6] = LevelRenderer.getLightColor(level, state, pos); diff --git a/src/main/java/net/minecraftforge/client/model/lighting/QuadLighter.java b/src/main/java/net/minecraftforge/client/model/lighting/QuadLighter.java index baf3abe579..3f61c52cce 100644 --- a/src/main/java/net/minecraftforge/client/model/lighting/QuadLighter.java +++ b/src/main/java/net/minecraftforge/client/model/lighting/QuadLighter.java @@ -158,6 +158,7 @@ public abstract class QuadLighter * as it only uses the state for querying if the state has emissive rendering but instead looks up the state at the given position for checking the * light emission. */ + @Deprecated(since = "1.20.1") protected static int getLightColor(BlockAndTintGetter level, BlockPos pos, BlockState state) { if (state.emissiveRendering(level, pos)) diff --git a/src/main/java/net/minecraftforge/client/model/lighting/SmoothQuadLighter.java b/src/main/java/net/minecraftforge/client/model/lighting/SmoothQuadLighter.java index 6c39f2be1f..a7fadc0ef7 100644 --- a/src/main/java/net/minecraftforge/client/model/lighting/SmoothQuadLighter.java +++ b/src/main/java/net/minecraftforge/client/model/lighting/SmoothQuadLighter.java @@ -50,7 +50,7 @@ public class SmoothQuadLighter extends QuadLighter pos.setWithOffset(origin, x - 1, y - 1, z - 1); BlockState neighborState = level.getBlockState(pos); t[x][y][z] = neighborState.getLightBlock(level, pos) < 15; - int brightness = getLightColor(level, pos, state); + int brightness = LevelRenderer.getLightColor(level, neighborState, pos); s[x][y][z] = LightTexture.sky(brightness); b[x][y][z] = LightTexture.block(brightness); ao[x][y][z] = neighborState.getShadeBrightness(level, pos);