Don't process unless the event type means it will actually draw something
This commit is contained in:
@@ -98,6 +98,9 @@ public class GuiSpellDisplay {
|
||||
@SubscribeEvent
|
||||
public static void draw(RenderGameOverlayEvent.Post event){
|
||||
|
||||
if(event.getType() != RenderGameOverlayEvent.ElementType.TEXT
|
||||
&& event.getType() != RenderGameOverlayEvent.ElementType.HOTBAR) return;
|
||||
|
||||
Minecraft mc = Minecraft.getMinecraft();
|
||||
|
||||
EntityPlayer player = mc.player;
|
||||
|
||||
Reference in New Issue
Block a user