Skip to content

Commit c453908

Browse files
committed
fixed spectrum$puffCircletDamageNegation mixin
1 parent 6fc733e commit c453908

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/de/dafuqs/spectrum/mixin/LivingEntityMixin.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ private Optional<Pair<ArmorPiercingItem, ItemStack>> getArmorPiercing(DamageSour
411411
private float getToughness() {
412412
return (float) this.getAttributeValue(EntityAttributes.GENERIC_ARMOR_TOUGHNESS);
413413
}
414-
415-
@ModifyReturnValue(method = "handleFallDamage", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/LivingEntity;computeFallDamage(FF)I"))
414+
415+
@ModifyExpressionValue(method = "handleFallDamage(FFLnet/minecraft/entity/damage/DamageSource;)Z", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/LivingEntity;computeFallDamage(FF)I"))
416416
private int spectrum$puffCircletDamageNegation(int original) {
417417
LivingEntity thisEntity = (LivingEntity) (Object) this;
418418
float cost = Math.min(original, PuffCircletItem.FALL_DAMAGE_NEGATING_COST);

0 commit comments

Comments
 (0)