quick fix : Redundant type cast

This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
1 parent b34eec4dea
commit 2d13e6185e
84 files changed
+426 -434

No files matched your search

+24 -24
View File
@@ -55,10 +55,10 @@ public class BreakingFX extends EntityFX {
float f10 = 0.1F * this.particleScale;
if (this.particleIcon != null) {
f6 = this.particleIcon.getInterpolatedU((double) (this.particleTextureJitterX / 4.0F * 16.0F));
f7 = this.particleIcon.getInterpolatedU((double) ((this.particleTextureJitterX + 1.0F) / 4.0F * 16.0F));
f8 = this.particleIcon.getInterpolatedV((double) (this.particleTextureJitterY / 4.0F * 16.0F));
f9 = this.particleIcon.getInterpolatedV((double) ((this.particleTextureJitterY + 1.0F) / 4.0F * 16.0F));
f6 = this.particleIcon.getInterpolatedU(this.particleTextureJitterX / 4.0F * 16.0F);
f7 = this.particleIcon.getInterpolatedU((this.particleTextureJitterX + 1.0F) / 4.0F * 16.0F);
f8 = this.particleIcon.getInterpolatedV(this.particleTextureJitterY / 4.0F * 16.0F);
f9 = this.particleIcon.getInterpolatedV((this.particleTextureJitterY + 1.0F) / 4.0F * 16.0F);
}
float f11 = (float) (this.prevPosX + (this.posX - this.prevPosX) * (double) par2 - interpPosX);
@@ -67,28 +67,28 @@ public class BreakingFX extends EntityFX {
float f14 = 1.0F;
par1Tessellator.setColorOpaque_F(f14 * this.particleRed, f14 * this.particleGreen, f14 * this.particleBlue);
par1Tessellator.addVertexWithUV(
(double) (f11 - par3 * f10 - par6 * f10),
(double) (f12 - par4 * f10),
(double) (f13 - par5 * f10 - par7 * f10),
(double) f6,
(double) f9);
f11 - par3 * f10 - par6 * f10,
f12 - par4 * f10,
f13 - par5 * f10 - par7 * f10,
f6,
f9);
par1Tessellator.addVertexWithUV(
(double) (f11 - par3 * f10 + par6 * f10),
(double) (f12 + par4 * f10),
(double) (f13 - par5 * f10 + par7 * f10),
(double) f6,
(double) f8);
f11 - par3 * f10 + par6 * f10,
f12 + par4 * f10,
f13 - par5 * f10 + par7 * f10,
f6,
f8);
par1Tessellator.addVertexWithUV(
(double) (f11 + par3 * f10 + par6 * f10),
(double) (f12 + par4 * f10),
(double) (f13 + par5 * f10 + par7 * f10),
(double) f7,
(double) f8);
f11 + par3 * f10 + par6 * f10,
f12 + par4 * f10,
f13 + par5 * f10 + par7 * f10,
f7,
f8);
par1Tessellator.addVertexWithUV(
(double) (f11 + par3 * f10 - par6 * f10),
(double) (f12 - par4 * f10),
(double) (f13 + par5 * f10 - par7 * f10),
(double) f7,
(double) f9);
f11 + par3 * f10 - par6 * f10,
f12 - par4 * f10,
f13 + par5 * f10 - par7 * f10,
f7,
f9);
}
}