Skip to content

Commit

Permalink
Organize method order
Browse files Browse the repository at this point in the history
  • Loading branch information
Meldexun committed Mar 3, 2023
1 parent 6fb7b5f commit c6f2f5d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/com/charles445/rltweaker/hook/HookPotionCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -74,17 +74,17 @@ public static PotionEffect onAddTipsyEffect(PotionEffect potionEffect)
"com.tmtravlr.potioncore.PotionCoreAttributes", "DAMAGE_RESISTANCE", "DAMAGE_RESISTANCE");
private static float originalDamage;

public static double getAdjustedDamageResistanceAttribute(EntityLivingBase entity) {
// skip potion core damage resistance handler
return 0.0D;
}

public static Potion resistance_registerPotionAttributeModifier(Potion potion, IAttribute attribute,
String uniqueId, double ammount, int operation) {
// skip registration of attribute modifier
return potion;
}

public static double getAdjustedDamageResistanceAttribute(EntityLivingBase entity) {
// skip potion core damage resistance handler
return 0.0D;
}

public static void preResistancePotionCalculation(float damage) {
originalDamage = damage;
}
Expand Down

0 comments on commit c6f2f5d

Please sign in to comment.