From a570bd57d0aff4137fb0207e403bbf39019461d0 Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Mon, 2 Sep 2019 17:39:36 +0100 Subject: [PATCH] Replace call to client-side-only method setVelocity, fixes #228 --- src/main/java/electroblob/wizardry/spell/Disintegration.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/spell/Disintegration.java b/src/main/java/electroblob/wizardry/spell/Disintegration.java index 0dda0a58..45d89781 100644 --- a/src/main/java/electroblob/wizardry/spell/Disintegration.java +++ b/src/main/java/electroblob/wizardry/spell/Disintegration.java @@ -60,7 +60,9 @@ public class Disintegration extends SpellRay { double z = (world.rand.nextDouble() - 0.5) * target.width; ember.setPosition(target.posX + x, target.posY + y, target.posZ + z); float speed = 0.2f; - ember.setVelocity(x * speed, y * 0.5f * speed, z * speed); + ember.motionX = x * speed; + ember.motionY = y * 0.5f * speed; + ember.motionZ = z * speed; world.spawnEntity(ember); } }