Hello all.
I already asked this on the irc channel, but we couldn't find a solution.
I am using the new RenderGameOverlayEvent to render behind or hide the GuiIngame hotbar.
When my gui is created, I'm registering it for the event at the forge event bus.
When my gui closes, I'm unregistering it from the event bus, but the event handler still gets called.
I could use some kind of visibility check, and while this solves the problem at hand, it creates some kind of memory leak, as the reference to the instance still gets held by the event bus.
Heavily cut of pastebin: http://pastebin.com/v3wwGqcu
Btw, I'm loving the new events! Last week I thought "damn, if only i could render behind the hotbar!" and today I saw that commit.
While I was at it, I also found a spelling error in the ListenerList class, line 100, unregiterAll -> unregisterAll