Fixed argument mixin
This commit is contained in:
parent
072e8b47db
commit
e104752c6d
1 changed files with 2 additions and 2 deletions
|
@ -99,8 +99,8 @@ public abstract class LivingEntityMixin extends Entity {
|
|||
this.lastAttacker = source.getEntity();
|
||||
}
|
||||
|
||||
@ModifyArg(method = "hurt", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;knockback(DDD)V"))
|
||||
private float be_increaseKnockback(float value, double x, double z) {
|
||||
@ModifyArg(method = "hurt", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;knockback(DDD)V"), index=0)
|
||||
private double be_increaseKnockback(double value, double x, double z) {
|
||||
if (lastAttacker != null && lastAttacker instanceof LivingEntity) {
|
||||
LivingEntity attacker = (LivingEntity) lastAttacker;
|
||||
value += this.be_getKnockback(attacker.getMainHandItem().getItem());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue