aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java/me/shedaniel
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2022-06-16 23:40:19 +0800
committershedaniel <daniel@shedaniel.me>2022-06-28 03:21:12 +0800
commit90ef94bb9d5cf482c824ee53aa6133939d8de670 (patch)
treebac18ae8f25ab56dfc9990fc104c4b707485a31e /runtime/src/main/java/me/shedaniel
parentdd34918d822d38357c62d9ba36549db0adb0caac (diff)
downloadRoughlyEnoughItems-90ef94bb9d5cf482c824ee53aa6133939d8de670.tar.gz
RoughlyEnoughItems-90ef94bb9d5cf482c824ee53aa6133939d8de670.tar.bz2
RoughlyEnoughItems-90ef94bb9d5cf482c824ee53aa6133939d8de670.zip
Render errors without hover for pinned displays
Diffstat (limited to 'runtime/src/main/java/me/shedaniel')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/favorites/history/DisplayEntry.java22
1 files changed, 11 insertions, 11 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/favorites/history/DisplayEntry.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/favorites/history/DisplayEntry.java
index d3a457716..96eb61220 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/favorites/history/DisplayEntry.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/favorites/history/DisplayEntry.java
@@ -164,18 +164,18 @@ public class DisplayEntry extends WidgetWithBounds {
if (plusButton.containsMouse(Math.round(mouse.x()), Math.round(mouse.y()))) {
result.tooltipRenderer.accept(new Point(mouseX, mouseY), Tooltip::queue);
-
- if (result.renderer != null) {
- poses.pushPose();
- if (!stable || !target.equals(bounds)) {
- poses.translate(0, 0, 600);
- }
- poses.translate(xOffset(), yOffset(), 0);
- poses.scale(xScale(), yScale(), 1.0F);
-
- result.renderer.render(poses, mouseX, mouseY, delta, widgets.get(), getBounds(), display);
- poses.popPose();
+ }
+
+ if (result.renderer != null) {
+ poses.pushPose();
+ if (!stable || !target.equals(bounds)) {
+ poses.translate(0, 0, 600);
}
+ poses.translate(xOffset(), yOffset(), 0);
+ poses.scale(xScale(), yScale(), 1.0F);
+
+ result.renderer.render(poses, mouseX, mouseY, delta, widgets.get(), getBounds(), display);
+ poses.popPose();
}
} else {
poses.popPose();