|
1 | 1 | --- a/net/minecraft/client/renderer/EntityRenderer.java |
2 | 2 | +++ b/net/minecraft/client/renderer/EntityRenderer.java |
3 | | -@@ -1,27 +1,59 @@ |
| 3 | +@@ -1,27 +1,60 @@ |
4 | 4 | package net.minecraft.client.renderer; |
5 | 5 |
|
6 | 6 | -import com.google.gson.JsonSyntaxException; |
|
54 | 54 | +import net.minecraft.client.gui.GuiWinGame; |
55 | 55 | import net.minecraft.client.gui.MapItemRenderer; |
56 | 56 | import net.minecraft.client.gui.ScaledResolution; |
| 57 | ++import net.minecraft.client.gui.inventory.GuiContainer; |
57 | 58 | import net.minecraft.client.multiplayer.WorldClient; |
58 | 59 | import net.minecraft.client.particle.EffectRenderer; |
59 | 60 | import net.minecraft.client.particle.EntityRainFX; |
|
62 | 63 | import net.minecraft.client.renderer.culling.Frustrum; |
63 | 64 | import net.minecraft.client.renderer.entity.RenderManager; |
64 | 65 | import net.minecraft.client.renderer.texture.DynamicTexture; |
65 | | -@@ -29,10 +61,12 @@ |
| 66 | +@@ -29,10 +62,12 @@ |
66 | 67 | import net.minecraft.client.resources.I18n; |
67 | 68 | import net.minecraft.client.resources.IResourceManager; |
68 | 69 | import net.minecraft.client.resources.IResourceManagerReloadListener; |
|
75 | 76 | import net.minecraft.enchantment.EnchantmentHelper; |
76 | 77 | import net.minecraft.entity.Entity; |
77 | 78 | import net.minecraft.entity.EntityLivingBase; |
78 | | -@@ -40,6 +74,9 @@ |
| 79 | +@@ -40,6 +75,9 @@ |
79 | 80 | import net.minecraft.entity.item.EntityItemFrame; |
80 | 81 | import net.minecraft.entity.player.EntityPlayer; |
81 | 82 | import net.minecraft.init.Blocks; |
|
85 | 86 | import net.minecraft.potion.Potion; |
86 | 87 | import net.minecraft.server.integrated.IntegratedServer; |
87 | 88 | import net.minecraft.src.Config; |
88 | | -@@ -61,2593 +98,4849 @@ |
| 89 | +@@ -61,2593 +99,4852 @@ |
89 | 90 | import net.minecraft.world.World; |
90 | 91 | import net.minecraft.world.WorldProvider; |
91 | 92 | import net.minecraft.world.biome.BiomeGenBase; |
|
2294 | 2295 | + |
2295 | 2296 | + |
2296 | 2297 | + this.mc.mcProfiler.endStartSection("getPointedBlock"); |
2297 | | -+ this.getMouseOver(par1); |
2298 | | -+ |
| 2298 | ++ //this.getMouseOver(par1); |
| 2299 | ++ //dont call this cause soemthing might inherit it |
| 2300 | ++ |
2299 | 2301 | + if( this.mc.currentScreen == null ) |
2300 | 2302 | + { |
2301 | 2303 | + if(mc.currentPass == renderPass.Left) |
|
4550 | 4552 | + GL11.glDisable(GL11.GL_ALPHA_TEST); |
4551 | 4553 | + } |
4552 | 4554 | + |
4553 | | -+ if (this.mc.vrSettings.hudOcclusion == false || this.mc.currentScreen != null){ |
| 4555 | ++ if (this.mc.vrSettings.hudOcclusion == false){ |
4554 | 4556 | + // Never use depth test for in game menu - so you can always see it! |
4555 | 4557 | + GL11.glDisable(GL11.GL_DEPTH_TEST); |
4556 | | -+ } |
4557 | | -+ |
| 4558 | ++ } else GL11.glEnable(GL11.GL_DEPTH_TEST); |
| 4559 | ++ GL11.glDepthMask(true); |
| 4560 | ++ |
4558 | 4561 | + //the framebuffer has to be drawn with color blending transparency to support non-alpha cursors. Always has a black background. |
4559 | 4562 | + GL11.glDisable(GL11.GL_BLEND); |
4560 | 4563 | + |
|
4567 | 4570 | + |
4568 | 4571 | + if(mc.currentPass == renderPass.Third){ |
4569 | 4572 | + GL11.glEnable(GL11.GL_DEPTH_TEST); |
4570 | | -+ GL11.glDepthMask(true); |
4571 | 4573 | + } |
4572 | 4574 | + |
4573 | 4575 | + //Render framebuffer onto world projection |
|
4704 | 4706 | + |
4705 | 4707 | + if (!drawScreenHandled) |
4706 | 4708 | + { |
4707 | | -+ this.mc.currentScreen.drawScreen(mouseX, mouseY, renderPartialTicks); |
| 4709 | ++ try { |
| 4710 | ++ this.mc.currentScreen.drawScreen(mouseX, mouseY, renderPartialTicks); |
| 4711 | ++ } catch (Exception e) { |
| 4712 | ++ //wtf LOTR? |
| 4713 | ++ } |
4708 | 4714 | + } |
4709 | 4715 | + |
4710 | 4716 | + if(mc.currentScreen !=null){ //wtf pixelmon? |
4711 | | -+ |
4712 | | -+ if(Reflector.EventBus_post.exists()) Reflector.postForgeBusEvent(Reflector.DrawScreenEvent_Post_Constructor, new Object[] {this.mc.currentScreen, Integer.valueOf(mouseX), Integer.valueOf(mouseY), Float.valueOf(renderPartialTicks)}); |
| 4717 | ++ |
| 4718 | ++ if(Reflector.EventBus_post.exists()) Reflector.postForgeBusEvent(Reflector.DrawScreenEvent_Post_Constructor, new Object[] {this.mc.currentScreen, Integer.valueOf(mouseX), Integer.valueOf(mouseY), Float.valueOf(renderPartialTicks)}); |
4713 | 4719 | + |
4714 | | -+ // Draw GUI crosshair |
4715 | | -+ if (mc.stereoProvider.isStereo()){ |
4716 | | -+ if(MCOpenVR.controllerMouseValid){ |
4717 | | -+ mc.ingameGUI.drawMouseMenuQuad(mc.currentScreen.getMouseX(),mc.currentScreen.getMouseY()) ; |
4718 | | -+ } |
4719 | | -+ } else mc.ingameGUI.drawMouseMenuQuad(mc.currentScreen.getMouseX(),mc.currentScreen.getMouseY()) ; |
| 4720 | ++ // Draw GUI crosshair |
| 4721 | ++ if (mc.stereoProvider.isStereo()){ |
| 4722 | ++ if(MCOpenVR.controllerMouseValid){ |
| 4723 | ++ mc.ingameGUI.drawMouseMenuQuad(this.mc.currentScreen.getMouseX(),this.mc.currentScreen.getMouseY()); |
| 4724 | ++ } |
| 4725 | ++ } else mc.ingameGUI.drawMouseMenuQuad(this.mc.currentScreen.getMouseX(),this.mc.currentScreen.getMouseY()); |
4720 | 4726 | + } |
4721 | 4727 | + } |
4722 | 4728 | + catch (Throwable throwable) |
|
5600 | 5606 | + } |
5601 | 5607 | + |
5602 | 5608 | + if (mc.objectMouseOver == null) { |
5603 | | -+ |
5604 | | -+ |
5605 | 5609 | + GL11.glRotatef(45, 0, 0, 1); |
5606 | 5610 | + } |
5607 | 5611 | + |
|
0 commit comments