Slick & NiftyGUI. Nifty initialize exception
- by Romeo
I found my self into trouble when trying to run a Slick game with a Nifty Game State.
This is the code:
@Override
protected void initGameAndGUI(GameContainer container, StateBasedGame game)
throws SlickException {
initNifty(container, game);
}
If i run this i get: java.lang.IllegalStateException: The NiftyGUI was already initialized. Its illegal to do so twice.
If i delete the call to initNifty() i get another exception:java.lang.IllegalStateException: NiftyGUI was not initialized.