Update to 1.14.3

This commit is contained in:
Marcel Konrad
2019-06-25 13:57:07 +02:00
parent 7732f02e4e
commit d990f8512b
10 changed files with 34 additions and 31 deletions

View File

@@ -27,7 +27,7 @@ public class ClientEventHandler
@SubscribeEvent
public static void renderWorldLastEvent(RenderWorldLastEvent event)
{
if(Config.getSettings().highlightBlocks() && Minecraft.getInstance().world != null && Minecraft.getInstance().getRenderManager().field_217783_c != null)
if(Config.getSettings().highlightBlocks() && Minecraft.getInstance().world != null && Minecraft.getInstance().getRenderManager().info != null)
{
GlStateManager.pushMatrix();
GlStateManager.disableAlphaTest();
@@ -38,7 +38,7 @@ public class ClientEventHandler
GlStateManager.depthMask(false);
final double constant = 0.0020000000949949026D;
Vec3d projected = Minecraft.getInstance().getRenderManager().field_217783_c.func_216785_c();
Vec3d projected = Minecraft.getInstance().getRenderManager().info.getProjectedView();
double minX = Math.min(BlockHelper.getPos1().getX(), BlockHelper.getPos2().getX()) - constant - projected.x;
double minY = Math.min(BlockHelper.getPos1().getY(), BlockHelper.getPos2().getY()) - constant - projected.y;

View File

@@ -16,7 +16,7 @@ public class KeyHandler
@SubscribeEvent
public static void keyInputEvent(KeyInputEvent event)
{
if(Minecraft.getInstance() != null && Minecraft.getInstance().field_71462_r == null)
if(Minecraft.getInstance() != null && Minecraft.getInstance().currentScreen == null)
{
if(WorldHandler.KEY_WORLD_HANDLER.isPressed())
{