Skip to content

Commit 11cbffa

Browse files
committed
Fixed bug in ElytraFly rocketBoost
1 parent 37e9150 commit 11cbffa

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

common/src/main/java/com/lambda/mixin/entity/FireworkRocketEntityMixin.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,9 @@ public class FireworkRocketEntityMixin {
1818
)
1919
)
2020
private void redirectSetVelocity(LivingEntity shooter, Vec3d vec3d) {
21-
if (!ElytraFly.getDoBoost()) {
22-
shooter.setVelocity(vec3d.add(
23-
vec3d.x * 0.1 + (vec3d.x * 1.5 - vec3d.x) * 0.5,
24-
vec3d.y * 0.1 + (vec3d.y * 1.5 - vec3d.y) * 0.5,
25-
vec3d.z * 0.1 + (vec3d.z * 1.5 - vec3d.z) * 0.5
26-
));
27-
return;
21+
if (ElytraFly.getDoBoost()){
22+
ElytraFly.boostRocket(shooter);
2823
}
29-
ElytraFly.boostRocket(shooter);
24+
else shooter.setVelocity(vec3d);
3025
}
31-
}
26+
}

0 commit comments

Comments
 (0)