Skip to content

Commit

Permalink
defer panel setting to method
Browse files Browse the repository at this point in the history
  • Loading branch information
ghzdude committed Jan 20, 2025
1 parent 0ee52f0 commit 6cb604e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/gregtech/api/cover/CoverWithUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ default ModularPanel confgurePanel(ModularPanel panel, boolean isSmallGui) {
var w = createUI(guiData, guiSyncManager);
return confgurePanel(GTGuis.defaultPopupPanel(getPickItem().getTranslationKey()), true)
.childIf(w != null, w)
.child(createTitleRow(getPickItem()).pos(5, 5))
.paddingBottom(24)
.coverChildrenHeight();
.child(createTitleRow(getPickItem()).pos(5, 5));
}

default @Nullable IWidget createUI(SidedPosGuiData data, PanelSyncManager manager) {
Expand Down

0 comments on commit 6cb604e

Please sign in to comment.