Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fc920aa9a8 |
+1
-1
@@ -20,7 +20,7 @@ public class ProtectionEnchantmentMixin {
|
||||
public static double getExplosionKnockbackAfterDampener(LivingEntity livingEntity, double d) {
|
||||
int i = EnchantmentHelper.getEnchantmentLevel(Enchantments.BLAST_PROTECTION, livingEntity);
|
||||
if (i > 0) {
|
||||
d *= Mth.clamp(1.0 - (double)i * 0.08, 0.0, 1.0);
|
||||
d *= Mth.clamp(1.0 - (double)i * 0.0, 0.0, 1.0);
|
||||
}
|
||||
|
||||
return d;
|
||||
|
||||
Reference in new issue
Block a user