mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-28 06:27:27 +02:00
Inline newposition when physics is disabled
This commit is contained in:
parent
fdaac26e72
commit
6ce5e8d310
@ -463,11 +463,7 @@ public class Entity implements Viewable, Tickable, TagHandler, PermissionHandler
|
||||
newVelocity = physicsResult.newVelocity();
|
||||
} else {
|
||||
newVelocity = deltaPos;
|
||||
newPosition = new Pos(
|
||||
position.x() + velocity.x() / tps,
|
||||
position.y() + velocity.y() / tps,
|
||||
position.z() + velocity.z() / tps
|
||||
);
|
||||
newPosition = position.add(currentVelocity).div(tps);
|
||||
}
|
||||
|
||||
// World border collision
|
||||
|
Loading…
Reference in New Issue
Block a user