Skip to content

Commit

Permalink
Fix EMI render issue when showing button-less recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Jan 19, 2025
1 parent 2687afc commit a9865eb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,10 @@ public void render(EmiRecipe recipe, EmiCraftContext<T> context, List<Widget> wi
}

// Render overlay on button
Bounds bounds = fillButton.get().getBounds();
guiGraphics.fill(bounds.x(), bounds.y(), bounds.x() + bounds.width(), bounds.y() + bounds.height(), transferResult.getButtonHighlightColor());
if (fillButton.get() != null) {
Bounds bounds = fillButton.get().getBounds();
guiGraphics.fill(bounds.x(), bounds.y(), bounds.x() + bounds.width(), bounds.y() + bounds.height(), transferResult.getButtonHighlightColor());
}
});
});
}
Expand Down

0 comments on commit a9865eb

Please sign in to comment.