aboutsummaryrefslogtreecommitdiff
path: root/runtime/src/main/java/me
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2021-04-16 21:08:44 +0800
committershedaniel <daniel@shedaniel.me>2021-04-16 21:08:44 +0800
commit5729d39a0f85413b4c4ada56e17514d09c7de4a4 (patch)
tree685f17ca954d98f3b6b9b71b9343a8989aa1a2c0 /runtime/src/main/java/me
parent1450e8283c6a8f0f0d6821046acd8d77f02daecf (diff)
downloadRoughlyEnoughItems-5729d39a0f85413b4c4ada56e17514d09c7de4a4.tar.gz
RoughlyEnoughItems-5729d39a0f85413b4c4ada56e17514d09c7de4a4.tar.bz2
RoughlyEnoughItems-5729d39a0f85413b4c4ada56e17514d09c7de4a4.zip
Fix icons for JEI categories with null icons
Signed-off-by: shedaniel <daniel@shedaniel.me>
Diffstat (limited to 'runtime/src/main/java/me')
-rw-r--r--runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryWidget.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryWidget.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryWidget.java
index 81cfb1397..4aad89854 100644
--- a/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryWidget.java
+++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/gui/widget/EntryWidget.java
@@ -471,4 +471,13 @@ public class EntryWidget extends Slot implements DraggableStackProviderWidget {
}
return null;
}
+
+ @Override
+ @Deprecated
+ public void render(PoseStack matrices, Rectangle bounds, int mouseX, int mouseY, float delta) {
+ Rectangle clone = getBounds().clone();
+ getBounds().setBounds(bounds.x - 1, bounds.y - 1, bounds.width + 2, bounds.height + 2);
+ render(matrices, mouseX, mouseY, delta);
+ getBounds().setBounds(clone);
+ }
}