Tenanea fixes and glow

This commit is contained in:
paulevsGitch 2020-11-26 16:13:34 +03:00
parent 7947d92b1d
commit cf607f24a0
4 changed files with 105 additions and 2 deletions

View file

@ -49,8 +49,9 @@ public class BlockTenaneaFlowers extends BlockVine implements IColorProvider {
int r = MHelper.floor(MathHelper.lerp(delta, color1.getX(), color2.getX()));
int g = MHelper.floor(MathHelper.lerp(delta, color1.getY(), color2.getY()));
int b = MHelper.floor(MathHelper.lerp(delta, color1.getZ(), color2.getZ()));
float[] hsb = MHelper.fromRGBtoHSB(r, g, b);
return MHelper.color(r, g, b);
return MHelper.fromHSBtoRGB(hsb[0], MHelper.max(0.5F, hsb[1]), hsb[2]);
};
ITEM_PROVIDER = (stack, tintIndex) -> {