Fix broken hsb calculation because mojang's function is broken. Also fix upstream issue 1672

This commit is contained in:
Vincent Lee committed 2016-06-17 19:41:59 -05:00
1 parent 6b10ada28a
commit 9fef518968
9 files changed
+11 -11

No files matched your search

@@ -69,7 +69,7 @@ public class RenderTilePool extends TileEntitySpecialRenderer<TilePool> {
float time = ClientTickHandler.ticksInGame + ClientTickHandler.partialTicks;
if(pool != null)
time += new Random(pool.getPos().getX() ^ pool.getPos().getY() ^ pool.getPos().getZ()).nextInt(100000);
color = MathHelper.hsvToRGB(time * 0.005F, 0.6F, 1F);
color = Color.HSBtoRGB(time * 0.005F, 0.6F, 1F);
}
if (fab || forceManaNumber > -1) {