unascribed / BlockRenderer

A mod to render blocks and items. Useful for wikis.
https://www.curseforge.com/minecraft/mc-mods/blockrenderer
MIT License
23 stars 17 forks source link

Tries to render when in chat gui #17

Closed elifoster closed 3 years ago

elifoster commented 7 years ago

While in the chat gui, if you press the key you've set for the keybind, it will attempt to render (and fail, of course). If you set your render key to a commonly used key, like ., this can become quite annoying since it states its error message in chat.

A simple fix would be an early return in BlockRenderer#onFrameStart:

if (FMLClientHandler.instance().isGUIOpen(GuiChat.class)) {
    return;
}