File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
core/src/main/java/tc/oc/pgm/projectile Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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 ));
You can’t perform that action at this time.
0 commit comments