Skip to content

Commit

Permalink
fix: InventoryOverlay Tooltip display
Browse files Browse the repository at this point in the history
  • Loading branch information
sakura-ryoko committed Dec 17, 2024
1 parent b41a9d0 commit a525564
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ author = masa
mod_file_name = malilib-fabric

# Current mod version
mod_version = 0.23.0-sakura.4
mod_version = 0.23.0-sakura.5

# Minecraft, Fabric Loader and API and mappings versions
minecraft_version_out = 1.21.4
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ public static void renderBackgroundSlotAt(float x, float y, float scale, Identif

public static void renderStackToolTip(int x, int y, ItemStack stack, MinecraftClient mc, DrawContext drawContext)
{
List<Text> list = stack.getTooltip(Item.TooltipContext.DEFAULT, mc.player, mc.options.advancedItemTooltips ? TooltipType.ADVANCED : TooltipType.BASIC);
List<Text> list = stack.getTooltip(Item.TooltipContext.create(mc.world), mc.player, mc.options.advancedItemTooltips ? TooltipType.ADVANCED : TooltipType.BASIC);
List<String> lines = new ArrayList<>();

for (int i = 0; i < list.size(); ++i)
Expand Down

0 comments on commit a525564

Please sign in to comment.