mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-12 09:51:12 +01:00
SPIGOT-5689: Fireball.setDirection increases velocity too much
This commit is contained in:
parent
94cb030fb5
commit
e0cfb34742
1 changed files with 3 additions and 3 deletions
|
@ -61,9 +61,9 @@ public class CraftFireball extends AbstractProjectile implements Fireball {
|
||||||
double y = direction.getY();
|
double y = direction.getY();
|
||||||
double z = direction.getZ();
|
double z = direction.getZ();
|
||||||
double magnitude = (double) MathHelper.sqrt(x * x + y * y + z * z);
|
double magnitude = (double) MathHelper.sqrt(x * x + y * y + z * z);
|
||||||
getHandle().dirX = x / magnitude;
|
getHandle().dirX = x / magnitude * 0.1D;
|
||||||
getHandle().dirY = y / magnitude;
|
getHandle().dirY = y / magnitude * 0.1D;
|
||||||
getHandle().dirZ = z / magnitude;
|
getHandle().dirZ = z / magnitude * 0.1D;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue