Skip to content

Commit

Permalink
Check for effects.food instead of effects.potions when creating food …
Browse files Browse the repository at this point in the history
…tooltip

Fixes Queerbric#110
  • Loading branch information
unilock committed Sep 3, 2023
1 parent 2917775 commit 2641546
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private void getTooltipData(CallbackInfoReturnable<Optional<TooltipData>> info)
datas.add(new FoodTooltipComponent(comp));
}

if (config.getEffectsConfig().hasPotions()) {
if (config.getEffectsConfig().hasFood()) {
if (stack.isIn(Inspecio.HIDDEN_EFFECTS_TAG)) {
datas.add(new StatusEffectTooltipComponent());
} else {
Expand Down

0 comments on commit 2641546

Please sign in to comment.