mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2025-07-18 18:23:06 +00:00
Number tweaks
This commit is contained in:
parent
47fa31515d
commit
f57ad5a888
@ -96,7 +96,7 @@ public class IrisDecorantActuator extends EngineAssignedActuator<BlockData> {
|
|||||||
|
|
||||||
if(height < getDimension().getFluidHeight()) {
|
if(height < getDimension().getFluidHeight()) {
|
||||||
getSeaSurfaceDecorator().decorate(finalI, j,
|
getSeaSurfaceDecorator().decorate(finalI, j,
|
||||||
realX, Math.round(+finalI + 1), Math.round(x + finalI - 1),
|
realX, Math.round(finalI + 1), Math.round(x + finalI - 1),
|
||||||
realZ, Math.round(z + j + 1), Math.round(z + j - 1),
|
realZ, Math.round(z + j + 1), Math.round(z + j - 1),
|
||||||
output, biome, getDimension().getFluidHeight(), getEngine().getHeight());
|
output, biome, getDimension().getFluidHeight(), getEngine().getHeight());
|
||||||
getSeaFloorDecorator().decorate(finalI, j,
|
getSeaFloorDecorator().decorate(finalI, j,
|
||||||
|
@ -74,8 +74,10 @@ public class IrisDecorator {
|
|||||||
@Desc("The maximum repeat stack height")
|
@Desc("The maximum repeat stack height")
|
||||||
private int stackMax = 1;
|
private int stackMax = 1;
|
||||||
@DependsOn({"stackMin", "stackMax"})
|
@DependsOn({"stackMin", "stackMax"})
|
||||||
@Desc("Changes stackMin and stackMin from being absolute block heights and instead uses them as a percentage to scale the stack based on the cave height" +
|
@Desc("""
|
||||||
"\n\nWithin a cave, setting them stackMin/max to 50 would make the stack 50% of the cave height")
|
Changes stackMin and stackMin from being absolute block heights and instead uses them as a percentage to scale the stack based on the cave height
|
||||||
|
|
||||||
|
Within a cave, setting them stackMin/max to 50 would make the stack 50% of the cave height""")
|
||||||
private boolean scaleStack = false;
|
private boolean scaleStack = false;
|
||||||
@Required
|
@Required
|
||||||
@MinNumber(0)
|
@MinNumber(0)
|
||||||
|
@ -96,7 +96,7 @@ public class BitStorage {
|
|||||||
this.mask = (1L << bits) - 1L;
|
this.mask = (1L << bits) - 1L;
|
||||||
this.valuesPerLong = (char) (64 / bits);
|
this.valuesPerLong = (char) (64 / bits);
|
||||||
int var3 = 3 * (this.valuesPerLong - 1);
|
int var3 = 3 * (this.valuesPerLong - 1);
|
||||||
this.divideMul = MAGIC[var3 + 0];
|
this.divideMul = MAGIC[var3];
|
||||||
this.divideAdd = MAGIC[var3 + 1];
|
this.divideAdd = MAGIC[var3 + 1];
|
||||||
this.divideShift = MAGIC[var3 + 2];
|
this.divideShift = MAGIC[var3 + 2];
|
||||||
int var4 = (length + this.valuesPerLong - 1) / this.valuesPerLong;
|
int var4 = (length + this.valuesPerLong - 1) / this.valuesPerLong;
|
||||||
|
@ -383,7 +383,7 @@ public class MathHelper {
|
|||||||
public static double d(double var0, double var2) {
|
public static double d(double var0, double var2) {
|
||||||
double var4 = var2 * var2 + var0 * var0;
|
double var4 = var2 * var2 + var0 * var0;
|
||||||
if(Double.isNaN(var4)) {
|
if(Double.isNaN(var4)) {
|
||||||
return 0.0D / 0.0;
|
return 0.0D;
|
||||||
} else {
|
} else {
|
||||||
boolean var6 = var0 < 0.0D;
|
boolean var6 = var0 < 0.0D;
|
||||||
if(var6) {
|
if(var6) {
|
||||||
|
@ -72,7 +72,7 @@ public class MCABitStorage {
|
|||||||
this.mask = (1L << bits) - 1L;
|
this.mask = (1L << bits) - 1L;
|
||||||
this.valuesPerLong = (char) (64 / bits);
|
this.valuesPerLong = (char) (64 / bits);
|
||||||
int var3 = 3 * (this.valuesPerLong - 1);
|
int var3 = 3 * (this.valuesPerLong - 1);
|
||||||
this.divideMul = MAGIC[var3 + 0];
|
this.divideMul = MAGIC[var3];
|
||||||
this.divideAdd = MAGIC[var3 + 1];
|
this.divideAdd = MAGIC[var3 + 1];
|
||||||
this.divideShift = MAGIC[var3 + 2];
|
this.divideShift = MAGIC[var3 + 2];
|
||||||
int var4 = (length + this.valuesPerLong - 1) / this.valuesPerLong;
|
int var4 = (length + this.valuesPerLong - 1) / this.valuesPerLong;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user