mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-14 01:14:18 +00:00
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:
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() {
|
||||
|
||||
Reference in new issue
Block a user