Skip to content

Commit

Permalink
Fix infinite effect false warning (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
xlzv authored Oct 9, 2024
1 parent c94fe7e commit 707aaba
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/main/java/fi/dy/masa/tweakeroo/tweaks/MiscTweaks.java
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ private static boolean potionWarningShouldInclude(StatusEffectInstance effect)
(effect.getEffectType().value().isBeneficial() ||
Configs.Generic.POTION_WARNING_BENEFICIAL_ONLY.getBooleanValue() == false) &&
effect.getDuration() <= Configs.Generic.POTION_WARNING_THRESHOLD.getIntegerValue() &&
effect.getDuration() >= 0 &&
POTION_RESTRICTION.isAllowed(effect.getEffectType().value());
}

Expand Down

0 comments on commit 707aaba

Please sign in to comment.