From 66fab0672c737cb6dfbfe59a7fc718ebf4726918 Mon Sep 17 00:00:00 2001 From: Bloepiloepi <59421074+Bloepiloepi@users.noreply.github.com> Date: Fri, 20 Aug 2021 14:56:27 +0200 Subject: [PATCH] Revert "Fix knockback strength" This reverts commit f955b1f2 --- src/main/java/net/minestom/server/entity/Entity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minestom/server/entity/Entity.java b/src/main/java/net/minestom/server/entity/Entity.java index 9057fd52d..5192774cc 100644 --- a/src/main/java/net/minestom/server/entity/Entity.java +++ b/src/main/java/net/minestom/server/entity/Entity.java @@ -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()