baseline: post wave1+i2b+b2i, vfbuild13=377 errors
This commit is contained in:
commit
e11e749e4b
2248 changed files with 378506 additions and 0 deletions
29
src/main/java/b/ah.java
Normal file
29
src/main/java/b/ah.java
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
package b;
|
||||
|
||||
import defpackage.*;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.world.InteractionHand;
|
||||
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;
|
||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||
|
||||
@Mixin(Minecraft.class)
|
||||
public abstract class ah {
|
||||
@Inject(method = "startAttack", at = @At("HEAD"))
|
||||
private void evo$meleePrimaryAttack(CallbackInfoReturnable<Boolean> callback) {
|
||||
if (sz.handlesAnyHand()) {
|
||||
ahl.getInstance().onAttack(true);
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "startUseItem", at = @At("RETURN"))
|
||||
private void evo$meleeSecondaryAttack(CallbackInfo callback) {
|
||||
if (!sz.usesHand(Minecraft.getInstance().player, InteractionHand.OFF_HAND)) {
|
||||
if (sz.handlesAnyHand()) {
|
||||
ahl.getInstance().onAttack(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue