Skip to content

Commit 576d1c4

Browse files
authored
Fix enchant key (#55)
1 parent ec2ef45 commit 576d1c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api-internal/src/main/java/at/pavlov/internal/armor/BaseArmorHolder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ default double getArmorDamageReduced(double damage) {
8686

8787
default double getDirectHitReduction(double armorPiercing, double damage) {
8888
double overallPiercing = armorPiercing + 1;
89-
return (1 - getArmorDamageReduced(damage) / overallPiercing) * (1 - getEnchantProtection(Key.mc("protection")) / overallPiercing);
89+
return (1 - getArmorDamageReduced(damage) / overallPiercing) * (1 - getEnchantProtection(Key.mc("projectile_protection")) / overallPiercing);
9090
}
9191

9292
default double getExplosionHitReduction(double armorPiercing, double damage) {

0 commit comments

Comments
 (0)