Fix feather falling not working on new types of fall damage
@@ -17,7 +17,7 @@ import java.util.List;
public class FeatherFallingModifier extends IncrementalModifier {
@Override
public float getProtectionModifier(IToolStackView tool, int level, EquipmentContext context, EquipmentSlot slotType, DamageSource source, float modifierValue) {
- if (source == DamageSource.FALL) {
+ if (source.isFall()) {
modifierValue += getScaledLevel(tool, level) * 3;
}
return modifierValue;
