Pointless white beacon is now RAINBOW BEACON

This commit is contained in:
tterrag1098 committed 2015-10-20 15:00:07 -04:00
1 parent 0da2d13496
commit 5e17a34713
2 files changed
+9 -2

No files matched your search

@@ -41,7 +41,14 @@ public class RenderCarvableBeacon extends TileEntityBeaconRenderer implements IS
private void renderBeam(float f1, World world, double x, double y, double z, int meta, float partialTicks) {
GL11.glAlphaFunc(GL11.GL_GREATER, 0.1F);
Color color = new Color(ItemDye.field_150922_c[meta]);
Color color;
if (meta < 15) {
color = new Color(ItemDye.field_150922_c[meta]);
} else {
float hue = ((float) world.getTotalWorldTime() % 256) / 256;
color = new Color(Color.HSBtoRGB(hue + (partialTicks / 256), 1, 1));
}
Tessellator tessellator = Tessellator.instance;
this.bindTexture(texture);
GL11.glTexParameterf(GL11.GL_TEXTURE_2D, GL11.GL_TEXTURE_WRAP_S, 10497.0F);