Skip to content

Commit

Permalink
Fixed seasonal tooltips showing for all items. Closes #468
Browse files Browse the repository at this point in the history
  • Loading branch information
Adubbz committed May 9, 2024
1 parent 59b012d commit 1298f8e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions common/src/main/java/sereneseasons/init/ModClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ public static void onItemTooltip(ItemTooltipEvent event)
List<Component> tooltip = event.getTooltip();
Player player = event.getPlayer();

if (event.getStack().getItem() != SSItems.CALENDAR)
return;

if (player != null && ModConfig.seasons.isDimensionWhitelisted(player.level().dimension()))
{
int seasonCycleTicks = SeasonHelper.getSeasonState(player.level()).getSeasonCycleTicks();
Expand Down

0 comments on commit 1298f8e

Please sign in to comment.