Hey there, so I'm trying to figure out how to use GuiScreens for a mod 'guidebook.' (something similar to the Thaumonomicon, if you're familiar with Thaumcraft).
However, I can't get the closeScreen() or openGui() methods to work correctly. In my main gui class, I have the actionPerformed method with a switch case in it switching between the ID of the buttons; you can see this here. I've commented the openGui() line because it doesn't work. When I click on the 'update news' button, the screen becomes twice as dark and nothing renders. I know it's opening the new gui because the screen becomes darker, but the old one doesn't go away.
What I don't get about this is that when I remove the openGui() line, like I have in my gui class, it closes the gui just fine. I have no idea why this happens this way.
My guihandler class and other gui classes are also present within this package.