Skip to content

Commit

Permalink
Combatify 1.2.0 1.20.5 Beta 6 - Prevent server trying to load things …
Browse files Browse the repository at this point in the history
…it shouldn't
  • Loading branch information
Alexandra-Myers committed Apr 23, 2024
1 parent ecda41a commit 3acabf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ public int changeIFrames(int original, @Local(ordinal = 0, argsOnly = true) fina
int invulnerableTime = original - 10;
if (entity2 instanceof Player player) {
int base = (int) Math.min(player.getCurrentItemAttackStrengthDelay(), invulnerableTime);
invulnerableTime = base >= 4 ? base - 2 : base;
invulnerableTime = base >= 4 && !Combatify.CONFIG.canAttackEarly() ? base - 2 : base;
if(player.getAttributeValue(Attributes.ATTACK_SPEED) - 1.5 >= 15 || Combatify.CONFIG.instaAttack())
invulnerableTime = original - 10;
}
Expand Down

0 comments on commit 3acabf3

Please sign in to comment.