Buggy code:
@ SideOnly ( Side . CLIENT ) public class Gui_EventManager { int width ; int height ; @ SubscribeEvent public void renderevent ( InitGuiEvent . Post event ) { } @ SubscribeEvent public void action ( ActionPerformedEvent . Post event ) { } public static int scaleTranslateX ; public static int scaleTranslateY ; private Minecraft mc = Minecraft . getMinecraft ( ) ; public static final ResourceLocation guiResource = new ResourceLocation ( "enviromine" , "textures//gui//status_Gui.png" ) ; public static final ResourceLocation blurOverlayResource = new ResourceLocation ( "enviromine" , "textures//misc//blur.png" ) ; public static EnviroDataTracker tracker = null ; @ SubscribeEvent @ SideOnly ( Side . CLIENT ) public void onGuiRender ( RenderGameOverlayEvent . Post event ) { if ( ( ( event . type ) != ( ElementType . HELMET ) ) || ( event . isCancelable ( ) ) ) { return ; } mc . thePlayer . yOffset = 1.62F ; if ( ( ClientQuake . GetQuakeShake ( mc . theWorld , mc . thePlayer ) ) > 0 ) { if ( ( ( ( ( mc . thePlayer ) == null ) || ( mc . thePlayer . isPlayerSleeping ( ) ) ) || ( ! ( mc . thePlayer . onGround ) ) ) || ( ( ( mc . currentScreen ) != null ) && ( mc . currentScreen . doesGuiPauseGame ( ) ) ) ) { return ; } float shakeMult = ClientQuake . GetQuakeShake ( mc . theWorld , mc . thePlayer ) ; double shakeSpeed = 2.0 * shakeMult ; float offsetY = 0.2F * shakeMult ; double shake = ( ( int ) ( ( mc . theWorld . getTotalWorldTime ( ) ) % 24000L ) ) * shakeSpeed ; mc . thePlayer . yOffset -= ( ( Math . sin ( shake ) ) * ( offsetY // 2.0F ) ) + ( offsetY // 2.0F ) ; mc . thePlayer . cameraPitch = ( ( float ) ( ( ( Math . sin ( shake ) ) * offsetY ) // 4.0F ) ) ; mc . thePlayer . cameraYaw = ( ( float ) ( ( ( Math . sin ( shake ) ) * offsetY ) // 4.0F ) ) ; } HUDRegistry . checkForResize ( ) ; if ( ( ( ( Gui_EventManager . tracker ) != null ) && ( ( ( ( Gui_EventManager . tracker . trackedEntity ) == null ) || ( Gui_EventManager . tracker . trackedEntity . isDead ) ) || ( ( Gui_EventManager . tracker . trackedEntity . getHealth ( ) ) <= 0.0F ) ) ) && ( ! ( Gui_EventManager . tracker . isDisabled ) ) ) { EntityPlayer player = EM_StatusManager . findPlayer ( this . mc . thePlayer . getCommandSenderName ( ) ) ; if ( player != null ) { Gui_EventManager . tracker . trackedEntity = player ; Gui_EventManager . tracker . isDisabled = false ; Gui_EventManager . tracker . loadNBTTags ( ) ; } else { Gui_EventManager . tracker . resetData ( ) ; EM_StatusManager . saveAndRemoveTracker ( Gui_EventManager . tracker ) ; Gui_EventManager . tracker = null ; } } if ( ( Gui_EventManager . tracker ) == null ) { if ( ! ( ( ( ( ( EM_Settings . enableAirQ ) == false ) && ( ( EM_Settings . enableBodyTemp ) == false ) ) && ( ( EM_Settings . enableHydrate ) == false ) ) && ( ( EM_Settings . enableSanity ) == false ) ) ) { Gui_EventManager . tracker = EM_StatusManager . lookupTrackerFromUsername ( this . mc . thePlayer . getCommandSenderName ( ) ) ; } } else if ( ( Gui_EventManager . tracker . isDisabled ) || ( ! ( trackerList . containsValue ( Gui_EventManager . tracker ) ) ) ) { Gui_EventManager . tracker = null ; } else { ( HudItem . blinkTick ) ++ ; if ( UI_Settings . overlay ) { <START_BUG> GasMaskHud . renderGasMask ( screenWidth , screenHeight , mc ) ; <END_BUG> } for ( HudItem huditem : HUDRegistry . getActiveHudItemList ( ) ) { if ( ( mc . playerController . isInCreativeMode ( ) ) && ( ! ( huditem . isRenderedInCreative ( ) ) ) ) { continue ; } if ( ( mc . thePlayer . ridingEntity ) instanceof EntityLivingBase ) { if ( huditem . shouldDrawOnMount ( ) ) { if ( UI_Settings . overlay ) { RenderAssist . bindTexture ( huditem . getResource ( "TintOverlay" ) ) ; huditem . renderScreenOverlay ( screenWidth , screenHeight ) ; } RenderAssist . bindTexture ( huditem . getResource ( "" ) ) ; GL11 . glPushMatrix ( ) ; float transx = ( ( float ) ( ( huditem . posX ) - ( ( huditem . posX ) * ( UI_Settings . guiScale ) ) ) ) ; float transy = ( ( float ) ( ( huditem . posY ) - ( ( huditem . posY ) * ( UI_Settings . guiScale ) ) ) ) ; GL11 . glTranslated ( transx , transy , 0 ) ; GL11 . glScalef ( ( ( float ) ( guiScale ) ) , ( ( float ) ( guiScale ) ) , ( ( float ) ( guiScale ) ) ) ; huditem . fixBounds ( ) ; huditem . render ( ) ; GL11 . glPopMatrix ( ) ; } } else { if ( huditem . shouldDrawAsPlayer ( ) ) { if ( UI_Settings . overlay ) { RenderAssist . bindTexture ( huditem . getResource ( "TintOverlay" ) ) ; huditem . renderScreenOverlay ( screenWidth , screenHeight ) ; } RenderAssist . bindTexture ( huditem . getResource ( "" ) ) ; GL11 . glPushMatrix ( ) ; float transx = ( ( float ) ( ( huditem . posX ) - ( ( huditem . posX ) * ( UI_Settings . guiScale ) ) ) ) ;

Fix:
GasMaskHud . renderGasMask ( mc ) ;