Skip to content

Commit

Permalink
Fix the weird projectile movements for fast projectiles on clientside.
Browse files Browse the repository at this point in the history
Seriously Mojang, why would you randomly hardcap it there? To a value that's far from the types maximum?
  • Loading branch information
bonii-xx committed Nov 16, 2014
1 parent 911755b commit 6f0be6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/main/java/tconstruct/library/entity/ProjectileBase.java
Expand Up @@ -284,6 +284,13 @@ public boolean dealDamage(float damage, ToolCore ammo, NBTTagCompound tags, Enti
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() {
Expand Down

0 comments on commit 6f0be6a

Please sign in to comment.