Some code formatting and VehicleOneHit (#258)
This commit is contained in:
@@ -4,8 +4,6 @@ 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.BlockPos;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
import net.minecraft.block.BlockState;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
@@ -13,10 +11,8 @@ import org.spongepowered.asm.mixin.injection.At;
|
||||
import org.spongepowered.asm.mixin.injection.Inject;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||
|
||||
import static meteordevelopment.meteorclient.MeteorClient.mc;
|
||||
|
||||
@Mixin(Entity.class)
|
||||
public abstract class MixinEntity {
|
||||
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();
|
||||
@@ -7,7 +7,6 @@ import meteordevelopment.meteorclient.systems.modules.Category;
|
||||
import meteordevelopment.meteorclient.systems.modules.Module;
|
||||
import meteordevelopment.meteorclient.systems.modules.combat.KillAura;
|
||||
import net.minecraft.entity.Entity;
|
||||
import net.minecraft.util.math.Box;
|
||||
import org.spongepowered.asm.mixin.Final;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
import org.spongepowered.asm.mixin.Shadow;
|
||||
@@ -112,7 +111,7 @@ public class KillAuraMixin extends Module {
|
||||
}
|
||||
|
||||
@Inject(method = "onTick", at = @At("TAIL"), locals = LocalCapture.CAPTURE_FAILSOFT)
|
||||
private void onTick(TickEvent.Pre event, CallbackInfo info, Entity primary, Box hitbox) {
|
||||
private void onTick(TickEvent.Pre event, CallbackInfo ci, Entity primary) {
|
||||
if (randomTeleport.get() && !onlyOnLook.get()) {
|
||||
mc.player.setPosition(primary.getX() + randomOffset(), primary.getY(), primary.getZ() + randomOffset());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user