Skip to content

Commit

Permalink
fix: fix [BUG] NPE #447
Browse files Browse the repository at this point in the history
  • Loading branch information
shitlime committed Mar 1, 2024
1 parent ff3bfa2 commit b60b864
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions xplat/src/main/java/dev/emi/emi/screen/EmiScreenManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,9 @@ private static void renderSlotOverlays(EmiDrawContext context, int mouseX, int m
}

public static void addWidgets(Screen screen) {
EmiScreenBase base = EmiScreenBase.getCurrent();
if (base == null) return;

forceRecalculate();
if (EmiConfig.centerSearchBar) {
search.x = (screen.width - 160) / 2;
Expand Down

0 comments on commit b60b864

Please sign in to comment.