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(
332
332
this .shooterParty = Objects .requireNonNull (match .getPlayer (player )).getParty ();
333
333
this .ce = (ProjectileDefinition .BlockEntityType ) definition .projectile ;
334
334
335
- this .currentLocation = spawnLocation ;
336
-
335
+ this .currentLocation = spawnLocation .clone ();
337
336
var normalizedDirection = currentLocation .getDirection ().normalize ();
337
+ this .currentLocation .setPitch (0 );
338
+ this .currentLocation .setYaw (0 );
339
+
338
340
this .increment = normalizedDirection .multiply (definition .velocity );
339
341
this .substeps = Math .max (1 , (int ) (definition .velocity / ce .size ()));
340
342
this .substep = increment .clone ().divide (new Vector (substeps , substeps , substeps ));
You can’t perform that action at this time.
0 commit comments