mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-03-09 03:05:39 +00:00
Better fine control
Shift already introduces a slowdown, no need to account for that
This commit is contained in:
parent
ee1ffc98ba
commit
16824452b0
@ -100,7 +100,7 @@ public class WingsMurk extends JetpackBase {
|
|||||||
|
|
||||||
Vec3 orig = player.getLookVec();
|
Vec3 orig = player.getLookVec();
|
||||||
Vec3 look = Vec3.createVectorHelper(orig.xCoord, 0, orig.zCoord).normalize();
|
Vec3 look = Vec3.createVectorHelper(orig.xCoord, 0, orig.zCoord).normalize();
|
||||||
double mod = player.isSneaking() ? 0.25D : player.isSprinting() ? 1D : 0.5D;
|
double mod = player.isSprinting() ? 1D : 0.25D;
|
||||||
|
|
||||||
if(player.moveForward != 0) {
|
if(player.moveForward != 0) {
|
||||||
player.motionX += look.xCoord * 0.35 * player.moveForward * mod;
|
player.motionX += look.xCoord * 0.35 * player.moveForward * mod;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user