mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:51:32 +01:00
Fix Right CPS Tracker
This commit is contained in:
parent
96793c83f6
commit
eb88b77ddf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user