Fixed shapeless recipes, fixed dye colors

This commit is contained in:
aidancbrady committed 2016-08-10 11:44:07 -04:00
1 parent 46725948f2
commit a3eeda8e10
5 files changed
+10 -10

No files matched your search

@@ -929,7 +929,7 @@ public class ClientProxy extends CommonProxy
@Override
public int getColorFromItemstack(ItemStack stack, int tintIndex)
{
EnumDyeColor dyeColor = EnumDyeColor.byMetadata(stack.getItemDamage()&15);
EnumDyeColor dyeColor = EnumDyeColor.byDyeDamage(stack.getItemDamage()&15);
EnumColor dye = EnumColor.DYES[dyeColor.getDyeDamage()];
return (int)(dye.getColor(0)*255) << 16 | (int)(dye.getColor(1)*255) << 8 | (int)(dye.getColor(2)*255);