Fix the case where the bookmark key is the same key that is used to close a GUI. (#433)

* This should fix the case where the bookmark key is the same key that is used to close a GUI

* Spotless
This commit is contained in:
Ryan Nasers authored and GitHub committed 2023-10-30 08:17:53 +01:00
1 parent 1647e8765f
commit bd5946f5bf
1 file changed
+4 -1
@@ -22,7 +22,10 @@ public class BookmarkContainerInfo {
}
public static IBookmarkContainerHandler getBookmarkContainerHandler(GuiContainer gui) {
return handlerMap.get(gui.getClass());
if (gui != null) {
return handlerMap.get(gui.getClass());
}
return null;
}
public static void load() {