mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-27 14:13:24 +02:00
Fix gravity acceleration
This commit is contained in:
parent
1afd4b4328
commit
1ea526aa89
@ -543,7 +543,7 @@ public class Entity implements Viewable, Tickable, EventHandler<EntityEvent>, Da
|
||||
|
||||
final Vector deltaPos = new Vector(
|
||||
getVelocity().getX() / tps,
|
||||
(getVelocity().getY() - gravityY) / tps,
|
||||
getVelocity().getY() / tps - gravityY,
|
||||
getVelocity().getZ() / tps
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user