Inline newposition when physics is disabled

This commit is contained in:
TheMode 2021-07-24 13:06:28 +02:00
parent fdaac26e72
commit 6ce5e8d310

View File

@ -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