mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-04 00:45:57 +00:00
clean up BeardGenerator
This commit is contained in:
parent
9c9487ced6
commit
d07f9fe341
@ -113,7 +113,7 @@ public class BeardGenerator {
|
|||||||
int l = z + 12;
|
int l = z + 12;
|
||||||
if (isInRange(j) && isInRange(k) && isInRange(l)) {
|
if (isInRange(j) && isInRange(k) && isInRange(l)) {
|
||||||
double d = (double)i + 0.5;
|
double d = (double)i + 0.5;
|
||||||
double e = MathHelper.squaredMagnitude((double)x, d, (double)z);
|
double e = MathHelper.squaredMagnitude(x, d, z);
|
||||||
double f = -d * MathHelper.fastInverseSqrt(e / 2.0) / 2.0;
|
double f = -d * MathHelper.fastInverseSqrt(e / 2.0) / 2.0;
|
||||||
return f * (double)STRUCTURE_WEIGHT_TABLE[l * 24 * 24 + j * 24 + k];
|
return f * (double)STRUCTURE_WEIGHT_TABLE[l * 24 * 24 + j * 24 + k];
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user