Don't process unless the event type means it will actually draw something
This commit is contained in:
@@ -97,6 +97,9 @@ public class GuiSpellDisplay {
|
|||||||
// using any of them, so this class may as well not bother and just be a static event handler. Neat!
|
// using any of them, so this class may as well not bother and just be a static event handler. Neat!
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void draw(RenderGameOverlayEvent.Post event){
|
public static void draw(RenderGameOverlayEvent.Post event){
|
||||||
|
|
||||||
|
if(event.getType() != RenderGameOverlayEvent.ElementType.TEXT
|
||||||
|
&& event.getType() != RenderGameOverlayEvent.ElementType.HOTBAR) return;
|
||||||
|
|
||||||
Minecraft mc = Minecraft.getMinecraft();
|
Minecraft mc = Minecraft.getMinecraft();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user