From 1cf5808f4f6ec725ea29c1ec870eec81bdf39cc0 Mon Sep 17 00:00:00 2001 From: Electroblob77 <35599699+Electroblob77@users.noreply.github.com> Date: Mon, 3 Aug 2020 22:47:26 +0100 Subject: [PATCH] So many things to fix... --- .../java/electroblob/wizardry/potion/PotionContainment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/electroblob/wizardry/potion/PotionContainment.java b/src/main/java/electroblob/wizardry/potion/PotionContainment.java index 79c47d9f..53620d11 100644 --- a/src/main/java/electroblob/wizardry/potion/PotionContainment.java +++ b/src/main/java/electroblob/wizardry/potion/PotionContainment.java @@ -96,7 +96,7 @@ public class PotionContainment extends PotionMagicEffect { EntityUtils.undoGravity(target); target.addVelocity(0.35 * Math.signum(x - target.posX), 0.35 * Math.signum(y - target.posY), 0.35 * Math.signum(z - target.posZ)); - target.setPositionAndUpdate(x, y, z); + target.setPositionAndUpdate(x, y, z); // FIXME: This line must be causing the server rubberbanding, not sure why // Player motion is handled on that player's client so needs packets if(target instanceof EntityPlayerMP){ ((EntityPlayerMP)target).connection.sendPacket(new SPacketEntityVelocity(target));