add generic dyeing

This commit is contained in:
Sen 2025-07-06 22:19:14 +02:00
parent b14a99dc05
commit 97b708bb23
Signed by: sen
GPG key ID: 3AC50A6F47D1B722
7 changed files with 80 additions and 133 deletions

View file

@ -61,7 +61,7 @@ public class LayerArmor implements LayerRenderer<EntityLiving>
if (itemarmor.getArmorMaterial().canBeDyed())
{
int i = itemarmor.getArmorColor(itemstack);
int i = itemstack.getDyeColor();
float f = (float)(i >> 16 & 255) / 255.0F;
float f1 = (float)(i >> 8 & 255) / 255.0F;
float f2 = (float)(i & 255) / 255.0F;