From e0cfb34742d3fd50d8882a2a8bb3612c430046c4 Mon Sep 17 00:00:00 2001 From: md_5 Date: Thu, 23 Apr 2020 08:33:33 +1000 Subject: [PATCH] SPIGOT-5689: Fireball.setDirection increases velocity too much --- .../java/org/bukkit/craftbukkit/entity/CraftFireball.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java index f392f801b2..0cff2145fc 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftFireball.java @@ -61,9 +61,9 @@ public class CraftFireball extends AbstractProjectile implements Fireball { double y = direction.getY(); double z = direction.getZ(); double magnitude = (double) MathHelper.sqrt(x * x + y * y + z * z); - getHandle().dirX = x / magnitude; - getHandle().dirY = y / magnitude; - getHandle().dirZ = z / magnitude; + getHandle().dirX = x / magnitude * 0.1D; + getHandle().dirY = y / magnitude * 0.1D; + getHandle().dirZ = z / magnitude * 0.1D; } @Override