          if (par1WorldClient == null)
          {
              NetClientHandler netclienthandler = this.getNetHandler();
-@@ -2063,6 +2078,18 @@
+@@ -2063,6 +2080,18 @@
              if (this.theIntegratedServer != null)
              {
                  this.theIntegratedServer.initiateShutdown();

                 {
                     this.entityRenderer.itemRenderer.resetEquippedProgress2();
                 }
@@ -1575,7 +1585,7 @@
             while (Mouse.next())
             {
                 i = Mouse.getEventButton();
-
+                if (ForgeHooksClient.postMouseEvent()) continue;
                 if (field_142025_a && i == 0 && (Keyboard.isKeyDown(29) || Keyboard.isKeyDown(157)))
                 {
                     i = 1;
@@ -2046,6 +2056,11 @@
     {
         this.statFileWriter.syncStats();
 

 
             if (flag)
             {
@@ -2419,11 +2353,18 @@
         par1PlayerUsageSnooper.addData("gl_max_texture_size", Integer.valueOf(getGLMaximumTextureSize()));
     }
 
