Skip to content

Commit

Permalink
Render the default hotbar in single hotbar rendering mode.
Browse files Browse the repository at this point in the history
Allows temporarily viewing HUD elements from mods that render bound to the hotbar event (workaround for rolandoislas#54.)
  • Loading branch information
rickybrent committed Mar 26, 2019
1 parent 9590ab6 commit f31727d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ public void render(RenderGameOverlayEvent event) {
// Check if hotbar should render
if (!(event.getType().equals(RenderGameOverlayEvent.ElementType.HOTBAR) && event.isCancelable()))
return;
if (HotbarLogic.shouldShowDefault()) {
return;
}
event.setCanceled(true);
// Render
GlStateManager.color(1, 1, 1, 1);
Expand Down

0 comments on commit f31727d

Please sign in to comment.