Skip to content

Commit

Permalink
improve: do not show prevent default description in tooltip if there …
Browse files Browse the repository at this point in the history
…are conditions in the action (close #71)
  • Loading branch information
Snownee committed Feb 6, 2024
1 parent f8bd221 commit 6f964a9
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ public boolean isHidden() {
public void loadCatalystsInfo(ILycheeRecipe<?> recipe, List<IngredientInfo> ingredients) {
if (recipe instanceof LycheeRecipe<?> lycheeRecipe && lycheeRecipe.getType().canPreventConsumeInputs) {
for (var ingredient : ingredients) {
if (ingredient.tooltips.isEmpty()) {
if (!ingredient.tooltips.isEmpty()) {
continue;
}
if (getConditions().isEmpty()) {
ingredient.addTooltip(lycheeRecipe.getType().getPreventDefaultDescription(lycheeRecipe));
ingredient.isCatalyst = true;
}
ingredient.isCatalyst = true;
}
}
}
Expand Down

0 comments on commit 6f964a9

Please sign in to comment.