调整子弹击退力度
This commit is contained in:
parent
7c7b070cef
commit
f7ff199bf5
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ public class LivingEntityMixin {
|
|||
@ModifyArg(method = "hurt", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/LivingEntity;knockback(DDD)V"), index = 0)
|
||||
private double modifyApplyKnockbackArgs(double original) {
|
||||
if (this.target$source.is(TargetModDamageTypes.GUNFIRE)) {
|
||||
return 0;
|
||||
return 0.1 * original;
|
||||
}
|
||||
return original;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue