From 5729d39a0f85413b4c4ada56e17514d09c7de4a4 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Fri, 16 Apr 2021 21:08:44 +0800 Subject: Fix icons for JEI categories with null icons Signed-off-by: shedaniel --- .../me/shedaniel/rei/impl/client/gui/widget/EntryWidget.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'runtime/src/main') 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); + } } -- cgit