Hi Taylantz,
I don't know if you are interested anymore in the solution but I think, I have a solution.
I suggest that this error is thrown in the Serverthread. In this Thread no LWJGL is used and therefore not initialized. This might cause your exception when rendering.
You should not call the render funtion of your gui in the Item class, rather in the proxy, that you hopefully have, because onItemFirstUse is also called in the server and ends in your exception.
With the proxy, the you can create a stub in the server version and a your render call is in the client one.
Besides, your rendering is only called once (you can see one tick long), unless you right-click your item all the time
Therefore you should add a TickHandler which implements ITickHandler and can be registered in your ClientProxy using
TickRegistry.registerTickHandler(new ClientTickHandler(), Side.CLIENT);
In the TickHandler you have to put several methods, but if you're using eclipse, it should not be such a big problem. One of them is ticks, which return when your tickStart and tickEnd methods are fired. The functions tickStart and tickEnd are self explanatory, I hope. I suggest, you call your render function in the tickEnd, because it is fired after all is drawn and you draw your stuff onto, what is drawn.
@Override
public EnumSet<TickType> ticks() {
return EnumSet.of(TickType.RENDER);
}
@Override
public void tickEnd(EnumSet<TickType> type, Object... tickData) {
if(type.contains(TickType.RENDER)) {
// render stuff
}
}
Oh my, that was long. I hope, I helped you.