quick fix : Redundant type cast

This commit is contained in:
Alexdoru committed 2023-01-25 23:57:49 +01:00
1 parent e2f185ad35
commit 144d336f5e
84 files changed
+426 -434

No files matched your search

@@ -27,7 +27,7 @@ public class SurfaceOreGen extends WorldGenerator {
number,
changeSize,
Blocks.stone,
(Block) Blocks.grass,
Blocks.grass,
Blocks.dirt,
Blocks.water,
Blocks.sand,
@@ -76,12 +76,12 @@ public class SurfaceOreGen extends WorldGenerator {
float f = random.nextFloat() * (float) Math.PI;
int blockNumber = numberOfBlocks;
if (alterSize) blockNumber = numberOfBlocks * 2 / 5 + random.nextInt(numberOfBlocks * 3 / 5);
double d0 = (double) ((float) (startX + 8) + MathHelper.sin(f) * (float) blockNumber / 8.0F);
double d1 = (double) ((float) (startX + 8) - MathHelper.sin(f) * (float) blockNumber / 8.0F);
double d2 = (double) ((float) (startZ + 8) + MathHelper.cos(f) * (float) blockNumber / 8.0F);
double d3 = (double) ((float) (startZ + 8) - MathHelper.cos(f) * (float) blockNumber / 8.0F);
double d4 = (double) (startY + random.nextInt(3) - 2);
double d5 = (double) (startY + random.nextInt(3) - 2);
double d0 = (float) (startX + 8) + MathHelper.sin(f) * (float) blockNumber / 8.0F;
double d1 = (float) (startX + 8) - MathHelper.sin(f) * (float) blockNumber / 8.0F;
double d2 = (float) (startZ + 8) + MathHelper.cos(f) * (float) blockNumber / 8.0F;
double d3 = (float) (startZ + 8) - MathHelper.cos(f) * (float) blockNumber / 8.0F;
double d4 = startY + random.nextInt(3) - 2;
double d5 = startY + random.nextInt(3) - 2;
for (int l = 0; l <= blockNumber; ++l) {
double d6 = d0 + (d1 - d0) * (double) l / (double) blockNumber;