Skip to content

Commit 8533852

Browse files
committed
Fix NullPointerException in player interfaces that fail to open
1 parent f66f2b3 commit 8533852

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interfaces/src/main/kotlin/com/noxcrew/interfaces/menu/PlayerInventoryMenu.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ public abstract class PlayerInventoryMenu : BaseInventoryMenu {
3333
null,
3434
),
3535
) { buildMenu(player) } ?: return null
36-
return open(player, parent, menu, reload) as PlayerInterfaceView
36+
return open(player, parent, menu, reload) as PlayerInterfaceView?
3737
}
3838
}

0 commit comments

Comments
 (0)