Skip to content

Commit

Permalink
Ignore alpha in non-terrain block rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmangohands committed Aug 17, 2024
1 parent 27c2412 commit 26f3833
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ protected void processQuad(MutableQuadViewImpl quad) {

private void colorizeQuad(MutableQuadViewImpl quad, int colorIndex) {
if (colorIndex != -1) {
final int blockColor = this.colorMap.getColor(this.state, this.level, this.pos, colorIndex);
final int blockColor = 0xFF000000 | this.colorMap.getColor(this.state, this.level, this.pos, colorIndex);

for (int i = 0; i < 4; i++) {
quad.color(i, ColorHelper.multiplyColor(blockColor, quad.color(i)));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public FabricFluidAdapter(FluidRenderHandler handler) {

@Override
public void getColors(LevelSlice slice, BlockPos pos, BlockPos.MutableBlockPos scratchPos, FluidState state, ModelQuadView quad, int[] output) {
Arrays.fill(output, 0xFF000000 |this.handler.getFluidColor(slice, pos, state));
Arrays.fill(output, 0xFF000000 | this.handler.getFluidColor(slice, pos, state));
}
}
}

0 comments on commit 26f3833

Please sign in to comment.