Skip to content

Commit

Permalink
Fix some issue lmfao
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMosKau authored Apr 25, 2022
1 parent ca135c1 commit 1a9c0a4
Showing 1 changed file with 19 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class Fly extends Module {
"HycraftOld",

// Supercraft
"SupecraftTimer",
"SupercraftTimer",
"SupercraftDamage",

// AAC
Expand Down Expand Up @@ -113,7 +113,10 @@ public class Fly extends Module {

// Vulcan't
private final BoolValue vulcanDebug = new BoolValue("Hycraft-Debug", true, () -> { return modeValue.get().equalsIgnoreCase("vulcannew"); });
private final BoolValue vulcanNotif = new BoolValue("Hycraft-Notification", true, () -> { return modeValue.get().equalsIgnoreCase("vulcannew"); });
private final BoolValue vulcanNotif = new BoolValue("Hycraft-SendNotification", true, () -> { return modeValue.get().equalsIgnoreCase("hycraft"); });

// Supercraft
private final BoolValue supercraftDEV = new BoolValue("Supercraft-DEV", false, () -> { return modeValue.get().equalsIgnoreCase("supercrafttimer"); });

// AAC
private final BoolValue aac5NoClipValue = new BoolValue("AAC5-NoClip", true, () -> { return modeValue.get().equalsIgnoreCase("aac5-vanilla"); });
Expand Down Expand Up @@ -274,15 +277,12 @@ public void onEnable() {

switch (mode.toLowerCase()) {
case "supercraftdamage":
moveSpeed = 1.3;
moveSpeed = 1.5;
if(mc.thePlayer.onGround) {
PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y + 4, mc.thePlayer.posZ, false));
PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, false));
PacketUtils.sendPacketNoEvent(new C03PacketPlayer.C04PacketPlayerPosition(mc.thePlayer.posX, y, mc.thePlayer.posZ, true));
}
if(mc.thePlayer.hurtTime > 0 && !hycraftDamaged) {
hycraftDamaged = true;
}
break;
case "hycraft":
flyup = false;
Expand Down Expand Up @@ -462,24 +462,21 @@ public void onUpdate(final UpdateEvent event) {
break;
case "supercraftdamage":
mc.thePlayer.capabilities.isFlying = false;
if(hycraftDamaged) {
mc.timer.timerSpeed = 0.85f;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionZ = 0;
if (!MovementUtils.isMoving())
moveSpeed = 0.25;
if (moveSpeed > 0.25) {
mc.timer.timerSpeed = 0.85f;
mc.thePlayer.motionY = 0;
mc.thePlayer.motionX = 0;
mc.thePlayer.motionZ = 0;
if (!MovementUtils.isMoving())
moveSpeed = 0.25;
if (moveSpeed > 0.25) {
moveSpeed -= moveSpeed / 159.0;
}
MovementUtils.strafe((float)moveSpeed);
MovementUtils.strafe((float)moveSpeed);

if (mc.gameSettings.keyBindJump.isKeyDown())
mc.thePlayer.motionY += 0.42;
if (mc.gameSettings.keyBindSneak.isKeyDown())
mc.thePlayer.motionY -= 0.42;

}
break;
case "oldncp":
if(startY > mc.thePlayer.posY)
Expand Down Expand Up @@ -873,6 +870,11 @@ public void onMove(final MoveEvent event) {
else
event.cancelEvent();
break;
case "supercrafttimer":
if (MovementUtils.isMoving() && supercraftDEV.get()) {
mc.thePlayer.motionY += 0.07;
}
break;
case "clip":
if (clipNoMove.get()) event.zeroXZ();
break;
Expand Down

0 comments on commit 1a9c0a4

Please sign in to comment.