Skip alpha channel for custom model data component (#12205)

This commit is contained in:
Lulu13022002
2025-03-08 05:27:05 +01:00
committed by GitHub
parent a6ce734fd0
commit ce30016218
2 changed files with 9 additions and 13 deletions

View File

@@ -40,7 +40,7 @@ public record PaperCustomModelData(
@Override
public List<Color> colors() {
return MCUtil.transformUnmodifiable(this.impl.colors(), Color::fromRGB);
return MCUtil.transformUnmodifiable(this.impl.colors(), color -> Color.fromRGB(color & 0x00FFFFFF)); // skip alpha channel
}
static final class BuilderImpl implements CustomModelData.Builder {