mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 23:13:09 +00:00
Fix broken hsb calculation because mojang's function is broken. Also fix upstream issue 1672
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user