Skip to content

Commit

Permalink
Add null check to runObject
Browse files Browse the repository at this point in the history
  • Loading branch information
Paddyk45 authored and Wide-Cat committed Sep 22, 2023
1 parent 8536494 commit 6ff4d92
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ public void initWidgets() {
}

private void runObject(Object object) {
if (object == null) return;
if (object instanceof HudElementInfo.Preset preset) {
Hud.get().add(preset, x, y);
close();
Expand Down

0 comments on commit 6ff4d92

Please sign in to comment.