9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-28 03:29:06 +00:00

Height warnings

This commit is contained in:
DanLT
2021-06-17 19:35:07 -08:00
parent 7efdcdc592
commit 449c2322b8
20 changed files with 40 additions and 26 deletions

View File

@@ -15,7 +15,7 @@ public class IrisBiomeStorage
static
{
e = (int) Math.round(Math.log(16.0) / Math.log(2.0)) - 2;
f = (int) Math.round(Math.log(256.0) / Math.log(2.0)) - 2;
f = (int) Math.round(Math.log(256.0) / Math.log(2.0)) - 2; // TODO: WARNING HEIGHT
a = 1 << IrisBiomeStorage.e + IrisBiomeStorage.e + IrisBiomeStorage.f;
b = (1 << IrisBiomeStorage.e) - 1;
c = (1 << IrisBiomeStorage.f) - 1;
@@ -38,6 +38,7 @@ public class IrisBiomeStorage
public void inject(BiomeGrid grid)
{
// TODO: WARNING HEIGHT
for(int i = 0; i < 256; i++)
{
for(int j = 0; j < 16; j++)

View File

@@ -569,6 +569,7 @@ public class MathHelper
{
for(int var02 = 0; var02 < 257; ++var02)
{
// TODO: WARNING HEIGHT
double var1 = (double) var02 / 256.0;
double var3 = Math.asin(var1);
MathHelper.g[var02] = Math.cos(var3);