Reorder image tooltip component to match vanilla (#8213)

Fixes #8212
This commit is contained in:
sciwhiz12 authored and GitHub committed 2021-11-25 19:58:55 +01:00
1 parent 1112819fc8
commit 7538cf5501
1 file changed
+1 -1
@@ -1123,7 +1123,7 @@ public class ForgeHooksClient
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);