Fix the weird projectile movements for fast projectiles on clientside.

Seriously Mojang, why would you randomly hardcap it there? To a value that's far from the types maximum?
This commit is contained in:
Bernhard Bonigl committed 2014-11-16 21:09:23 +01:00
1 parent 911755bef7
commit 6f0be6a334
1 file changed
+7
@@ -284,6 +284,13 @@ public abstract class ProjectileBase extends EntityArrow implements IEntityAddit
return dealtDamage;
}
@Override
public void setVelocity(double p_70016_1_, double p_70016_3_, double p_70016_5_) {
// don't do anything, we set it ourselves at spawn
// Mojangs code has a hard cap of 3.9 speed, but our projectiles can go faster, which desyncs client and server speeds
// Packet that's causing it: S12PacketEntityVelocity
}
@Override
// this function is the same as the vanilla EntityArrow
public void onUpdate() {