Skip to content

Commit e6e5638

Browse files
committed
Fix rockets not boosting without ElytraFly being enabled
1 parent c082eab commit e6e5638

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,14 @@ public class FireworkRocketEntityMixin {
1818
)
1919
)
2020
private void redirectSetVelocity(LivingEntity shooter, Vec3d vec3d) {
21-
if (!ElytraFly.getDoBoost()) return;
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;
28+
}
2229
ElytraFly.boostRocket(shooter);
2330
}
2431
}

0 commit comments

Comments
 (0)