Skip to content

Commit

Permalink
Reorder image tooltip component to match vanilla (MinecraftForge#8213)
Browse files Browse the repository at this point in the history
  • Loading branch information
sciwhiz12 authored Nov 25, 2021
1 parent 1112819 commit 7538cf5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1123,7 +1123,7 @@ public static List<ClientTooltipComponent> gatherTooltipComponents(ItemStack sta
List<Either<FormattedText, TooltipComponent>> elements = textElements.stream()
.map((Function<FormattedText, Either<FormattedText, TooltipComponent>>) Either::left)
.collect(Collectors.toCollection(ArrayList::new));
itemComponent.ifPresent(c -> elements.add(Either.right(c)));
itemComponent.ifPresent(c -> elements.add(1, Either.right(c)));

var event = new RenderTooltipEvent.GatherComponents(stack, screenWidth, screenHeight, elements, -1);
MinecraftForge.EVENT_BUS.post(event);
Expand Down

0 comments on commit 7538cf5

Please sign in to comment.