add chorus exploit

This commit is contained in:
C10udburst
2022-03-17 17:33:37 +01:00
parent b174cb4949
commit b75cd8a2e2
5 changed files with 289 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
package anticope.rejects.mixin;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import org.spongepowered.asm.mixin.injection.At;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
import anticope.rejects.events.TeleportParticleEvent;
import meteordevelopment.meteorclient.MeteorClient;
import meteordevelopment.meteorclient.utils.Utils;
import static meteordevelopment.meteorclient.MeteorClient.mc;
@Mixin(LivingEntity.class)
public class LivingEntityMixin {
@Inject(method = "handleStatus", at = @At("HEAD"), cancellable = true)
private void onHandleStatus(byte status, CallbackInfo ci) {
if ((Object) this instanceof Entity thisPlayer) {
if ((Object) thisPlayer == mc.player && status == 46 && Utils.canUpdate()) {
MeteorClient.EVENT_BUS.post(TeleportParticleEvent.get(thisPlayer.getX(), thisPlayer.getY(), thisPlayer.getZ()));
}
}
}
}