mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Make murky wings support shift+space for hovering
This commit is contained in:
parent
bdd56b6062
commit
0ac72afa97
@ -81,10 +81,26 @@ public class WingsMurk extends JetpackBase {
|
||||
|
||||
if(props.isJetpackActive()) {
|
||||
|
||||
if(player.motionY < 0.6D)
|
||||
player.motionY += 0.2D;
|
||||
else
|
||||
player.motionY = 0.8D;
|
||||
if(player.isSneaking()) {
|
||||
if(player.motionY < -1)
|
||||
player.motionY += 0.4D;
|
||||
else if(player.motionY < -0.1)
|
||||
player.motionY += 0.2D;
|
||||
else if(player.motionY < 0)
|
||||
player.motionY = 0;
|
||||
else if(player.motionY > 1)
|
||||
player.motionY -= 0.4D;
|
||||
else if(player.motionY > 0.1)
|
||||
player.motionY -= 0.2D;
|
||||
else if(player.motionY > 0)
|
||||
player.motionY = 0;
|
||||
|
||||
} else {
|
||||
if(player.motionY < 0.6D)
|
||||
player.motionY += 0.2D;
|
||||
else
|
||||
player.motionY = 0.8D;
|
||||
}
|
||||
|
||||
} else if(props.enableBackpack && !player.isSneaking()) {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user