From 8e49b26efbdcd79bbd24d0596149eb627a906eed Mon Sep 17 00:00:00 2001 From: Cloudburst Date: Sun, 20 Jun 2021 19:51:39 +0200 Subject: [PATCH] snail stealing our modules smh --- README.md | 2 +- .../cloudburst/rejects/modules/Gravity.java | 18 ++---------------- 2 files changed, 3 insertions(+), 17 deletions(-) diff --git a/README.md b/README.md index bf6eafc..df815b9 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Also includes unmerged PRs. - ColorSigns - Confuse - Coord Logger (World events from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/impl/misc/CoordFinder.java)) -- Gravity (Half ported from [Cornos](https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/MoonGravity.java), half writen by me) +- Gravity (Ported from [Cornos](https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/MoonGravity.java) - InteractionMenu (Ported from [BleachHack](https://github.com/BleachDrinker420/BleachHack/pull/211)) - Glide - Lavacast diff --git a/src/main/java/cloudburst/rejects/modules/Gravity.java b/src/main/java/cloudburst/rejects/modules/Gravity.java index 4be3270..c231e46 100644 --- a/src/main/java/cloudburst/rejects/modules/Gravity.java +++ b/src/main/java/cloudburst/rejects/modules/Gravity.java @@ -19,13 +19,6 @@ public class Gravity extends Module { private final SettingGroup sgGeneral = settings.getDefaultGroup(); - private final Setting dolphin = sgGeneral.add(new BoolSetting.Builder() - .name("dolphin") - .description("Disable underwater gravity.") - .defaultValue(true) - .build() - ); - private final Setting moon = sgGeneral.add(new BoolSetting.Builder() .name("moon") .description("Tired of being on earth?") @@ -37,16 +30,9 @@ public class Gravity extends Module { private void onTick(TickEvent.Post event) { if (mc.options.keySneak.isPressed()) return; - if (mc.player.isTouchingWater()) { - if (dolphin.get()) { - Vec3d velocity = mc.player.getVelocity(); - ((IVec3d) velocity).set(velocity.x, 0.002, velocity.z); - } - - } - else if (moon.get()) { + if (moon.get()) { Vec3d velocity = mc.player.getVelocity(); - ((IVec3d) velocity).set(velocity.x, velocity.y + 0.0568000030517578, velocity.z); // Yes, this was precisely calculated by the cornos dev (https://github.com/cornos/Cornos/blob/master/src/main/java/me/zeroX150/cornos/features/module/impl/movement/MoonGravity.java) + ((IVec3d) velocity).set(velocity.x, velocity.y + 0.0568000030517578, velocity.z); } } }