Skip to content

Commit 25afbbc

Browse files
committed
fix rotation
1 parent b61b00b commit 25afbbc

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

core/src/main/java/tc/oc/pgm/projectile/ProjectileMatchModule.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,9 +332,11 @@ public BlockRunner(
332332
this.shooterParty = Objects.requireNonNull(match.getPlayer(player)).getParty();
333333
this.ce = (ProjectileDefinition.BlockEntityType) definition.projectile;
334334

335-
this.currentLocation = spawnLocation;
336-
335+
this.currentLocation = spawnLocation.clone();
337336
var normalizedDirection = currentLocation.getDirection().normalize();
337+
this.currentLocation.setPitch(0);
338+
this.currentLocation.setYaw(0);
339+
338340
this.increment = normalizedDirection.multiply(definition.velocity);
339341
this.substeps = Math.max(1, (int) (definition.velocity / ce.size()));
340342
this.substep = increment.clone().divide(new Vector(substeps, substeps, substeps));

0 commit comments

Comments
 (0)