Skip to content

Commit

Permalink
fix: addressed implicit narrowing conversion in compound assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Roelymole committed Jan 9, 2025
1 parent 4cc29cf commit b077dd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void tick() {
this.zd *= 1.1D;
}

this.quadSize *= 0.9599999785423279D;
this.quadSize *= 0.95999998F;

this.xd *= 0.9599999785423279D;
this.yd *= 0.9599999785423279D;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void tick() {
super.tick();
if (this.level().isClientSide) {
Vec3 delta = getDeltaMovement();
this.wheelRotationX += Math.sqrt(delta.x * delta.x + delta.z * delta.z) * 150.0F * (this.speed < 0 ? 1 : -1);
this.wheelRotationX += (float)Math.sqrt(delta.x * delta.x + delta.z * delta.z) * 150.0F * (this.speed < 0 ? 1 : -1);
this.wheelRotationX %= 360;
this.wheelRotationZ = Math.max(-30.0F, Math.min(30.0F, this.wheelRotationZ * 0.9F));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public void tick(Level level, long packedPos) {
List<Footprint> toRemove = new ArrayList<>();

for (Footprint footprint : footprints) {
footprint.age += 20;
footprint.age += (short)20;

if (footprint.age >= Footprint.MAX_AGE) {
toRemove.add(footprint);
Expand Down

0 comments on commit b077dd0

Please sign in to comment.