Fix Right CPS Tracker

This commit is contained in:
kirillsaint 2023-07-10 14:34:51 +06:00
parent 96793c83f6
commit eb88b77ddf

View File

@ -179,7 +179,6 @@ public abstract class MinecraftMixin {
@Inject(method = "rightClickMouse", at = @At("HEAD"))
public void rightClickMouse(CallbackInfo ci) {
new EventClickMouse(1).call();
if (Client.getInstance().getModInstances().getOldAnimationsMod().isEnabled() && Client.getInstance().getSettingsManager().getSettingByClass(AnimationsMod.class, "1.7 Punching Animation").getValBoolean() &&
Minecraft.getMinecraft().playerController.getIsHittingBlock() &&
Minecraft.getMinecraft().thePlayer.getHeldItem() != null &&
@ -189,6 +188,11 @@ public abstract class MinecraftMixin {
}
}
@Inject(method = "runTick", at=@At(value = "INVOKE", target = "Lnet/minecraft/client/Minecraft;rightClickMouse()V", ordinal = 0))
public void rightClickEvent(CallbackInfo ci) {
new EventClickMouse(1).call();
}
/**
* @author kirillsaint
* @reason call event