snail stealing our modules smh
This commit is contained in:
@@ -19,13 +19,6 @@ public class Gravity extends Module {
|
||||
|
||||
private final SettingGroup sgGeneral = settings.getDefaultGroup();
|
||||
|
||||
private final Setting<Boolean> dolphin = sgGeneral.add(new BoolSetting.Builder()
|
||||
.name("dolphin")
|
||||
.description("Disable underwater gravity.")
|
||||
.defaultValue(true)
|
||||
.build()
|
||||
);
|
||||
|
||||
private final Setting<Boolean> 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user