Revert "Fix knockback strength"

This reverts commit f955b1f2
This commit is contained in:
Bloepiloepi 2021-08-20 14:56:27 +02:00
parent 1b8cc19a54
commit 66fab0672c

View File

@ -1432,7 +1432,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
//TODO check possible side effects of unnatural TPS (other than 20TPS)
final Vec velocityModifier = new Vec(x, z)
.normalize()
.mul(strength * MinecraftServer.TICK_PER_SECOND);
.mul(strength * MinecraftServer.TICK_PER_SECOND / 2);
setVelocity(new Vec(velocity.x() / 2d - velocityModifier.x(),
onGround ? Math.min(.4d, velocity.y() / 2d + strength) * MinecraftServer.TICK_PER_SECOND : velocity.y(),
velocity.z() / 2d - velocityModifier.z()