Remove FullNoClip as they won't work on servers (#274)
This commit is contained in:
@@ -58,7 +58,6 @@
|
|||||||
- Coord Logger (World events from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/mod/impl/misc/CoordFinder.java))
|
- Coord Logger (World events from [JexClient](https://github.com/DustinRepo/JexClient-main/blob/main/src/main/java/me/dustin/jex/feature/mod/impl/misc/CoordFinder.java))
|
||||||
- Custom Packets
|
- Custom Packets
|
||||||
- Extra Elytra (Ported from [Wurst](https://github.com/Wurst-Imperium/Wurst7/tree))
|
- Extra Elytra (Ported from [Wurst](https://github.com/Wurst-Imperium/Wurst7/tree))
|
||||||
- FullNoClip
|
|
||||||
- FullFlight (Antikick bypasses by [CCblueX](https://github.com/CCblueX) and [LiveOverflow](https://github.com/LiveOverflow))
|
- FullFlight (Antikick bypasses by [CCblueX](https://github.com/CCblueX) and [LiveOverflow](https://github.com/LiveOverflow))
|
||||||
- Gamemode notifier
|
- Gamemode notifier
|
||||||
- Ghost Mode (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/1932))
|
- Ghost Mode (Taken from an [unmerged PR](https://github.com/MeteorDevelopment/meteor-client/pull/1932))
|
||||||
|
|||||||
@@ -57,7 +57,6 @@ public class MeteorRejectsAddon extends MeteorAddon {
|
|||||||
modules.add(new CoordLogger());
|
modules.add(new CoordLogger());
|
||||||
modules.add(new CustomPackets());
|
modules.add(new CustomPackets());
|
||||||
modules.add(new ExtraElytra());
|
modules.add(new ExtraElytra());
|
||||||
modules.add(new FullNoClip());
|
|
||||||
modules.add(new FullFlight());
|
modules.add(new FullFlight());
|
||||||
modules.add(new GamemodeNotifier());
|
modules.add(new GamemodeNotifier());
|
||||||
modules.add(new GhostMode());
|
modules.add(new GhostMode());
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
package anticope.rejects.mixin;
|
|
||||||
|
|
||||||
import meteordevelopment.meteorclient.systems.modules.Modules;
|
|
||||||
import anticope.rejects.modules.FullFlight;
|
|
||||||
import anticope.rejects.modules.FullNoClip;
|
|
||||||
import net.minecraft.entity.Entity;
|
|
||||||
import net.minecraft.util.math.Vec3d;
|
|
||||||
import net.minecraft.block.BlockState;
|
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|
||||||
|
|
||||||
@Mixin(Entity.class)
|
|
||||||
public abstract class EntityMixin {
|
|
||||||
@Inject(method = "slowMovement", at = @At("HEAD"), cancellable = true)
|
|
||||||
public void slowMovement(BlockState blockState, Vec3d multiplier, CallbackInfo ci) {
|
|
||||||
if (Modules.get().isActive(FullFlight.class) || Modules.get().isActive(FullNoClip.class)) ci.cancel();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,14 +1,11 @@
|
|||||||
package anticope.rejects.mixin;
|
package anticope.rejects.mixin;
|
||||||
|
|
||||||
import anticope.rejects.events.OffGroundSpeedEvent;
|
import anticope.rejects.events.OffGroundSpeedEvent;
|
||||||
import anticope.rejects.modules.FullNoClip;
|
|
||||||
import meteordevelopment.meteorclient.systems.modules.Modules;
|
|
||||||
import meteordevelopment.meteorclient.MeteorClient;
|
import meteordevelopment.meteorclient.MeteorClient;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
@Mixin(PlayerEntity.class)
|
@Mixin(PlayerEntity.class)
|
||||||
@@ -17,8 +14,4 @@ public class PlayerEntityMixin {
|
|||||||
private void onGetOffGroundSpeed(CallbackInfoReturnable<Float> cir) {
|
private void onGetOffGroundSpeed(CallbackInfoReturnable<Float> cir) {
|
||||||
cir.setReturnValue(MeteorClient.EVENT_BUS.post(OffGroundSpeedEvent.get(cir.getReturnValueF())).speed);
|
cir.setReturnValue(MeteorClient.EVENT_BUS.post(OffGroundSpeedEvent.get(cir.getReturnValueF())).speed);
|
||||||
}
|
}
|
||||||
@Redirect(method = {"tick", "updatePose"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/PlayerEntity;isSpectator()Z"))
|
|
||||||
private boolean FullNoClip(PlayerEntity player) {
|
|
||||||
return player.isSpectator() || Modules.get().isActive(FullNoClip.class);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,39 +0,0 @@
|
|||||||
package anticope.rejects.modules;
|
|
||||||
|
|
||||||
import anticope.rejects.MeteorRejectsAddon;
|
|
||||||
import anticope.rejects.utils.RejectsUtils;
|
|
||||||
import meteordevelopment.meteorclient.events.entity.player.PlayerMoveEvent;
|
|
||||||
import meteordevelopment.meteorclient.settings.BoolSetting;
|
|
||||||
import meteordevelopment.meteorclient.settings.DoubleSetting;
|
|
||||||
import meteordevelopment.meteorclient.settings.Setting;
|
|
||||||
import meteordevelopment.meteorclient.settings.SettingGroup;
|
|
||||||
import meteordevelopment.meteorclient.systems.modules.Module;
|
|
||||||
import meteordevelopment.orbit.EventHandler;
|
|
||||||
|
|
||||||
public class FullNoClip extends Module {
|
|
||||||
private final SettingGroup sgGeneral = settings.getDefaultGroup();
|
|
||||||
private final Setting<Double> speed = sgGeneral.add(new DoubleSetting.Builder()
|
|
||||||
.name("speed")
|
|
||||||
.description("Your speed when noclipping.")
|
|
||||||
.defaultValue(0.3)
|
|
||||||
.min(0.0)
|
|
||||||
.sliderMax(10)
|
|
||||||
.build()
|
|
||||||
);
|
|
||||||
|
|
||||||
private final Setting<Boolean> verticalSpeedMatch = sgGeneral.add(new BoolSetting.Builder()
|
|
||||||
.name("vertical-speed-match")
|
|
||||||
.description("Matches your vertical speed to your horizontal speed, otherwise uses vanilla ratio.")
|
|
||||||
.defaultValue(false)
|
|
||||||
.build()
|
|
||||||
);
|
|
||||||
|
|
||||||
public FullNoClip() {
|
|
||||||
super(MeteorRejectsAddon.CATEGORY, "fullnoclip", "FullNoClip.");
|
|
||||||
}
|
|
||||||
|
|
||||||
@EventHandler
|
|
||||||
private void onPlayerMove(PlayerMoveEvent event) {
|
|
||||||
RejectsUtils.fullFlightMove(event, speed.get(), verticalSpeedMatch.get());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -8,7 +8,6 @@
|
|||||||
"CommandSuggestorMixin",
|
"CommandSuggestorMixin",
|
||||||
"Deadmau5FeatureRendererMixin",
|
"Deadmau5FeatureRendererMixin",
|
||||||
"EntityAccessor",
|
"EntityAccessor",
|
||||||
"EntityMixin",
|
|
||||||
"GameRendererMixin",
|
"GameRendererMixin",
|
||||||
"LivingEntityMixin",
|
"LivingEntityMixin",
|
||||||
"LivingEntityRendererMixin",
|
"LivingEntityRendererMixin",
|
||||||
|
|||||||
Reference in New Issue
Block a user