Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-78321

Player is not rendered if alternative view entity is set

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • None
    • Minecraft 1.8.1
    • None
    • N/A
    • Unconfirmed

      In RenderPlayer
      mc does if (!abstractClientPlayer.isUser() || this.renderManager.livingPlayer == abstractClientPlayer)
      to determine if it should render the entity
      but livingPlayer is set to the view entity in the render cache method,
      becuase of this, it doesn't render the player

      our solution for our mod is currently this, but it would be better to get this patched in base
      boolean cameraIsPlayer = Minecraft.getMinecraft().getRenderViewEntity() instanceof EntityPlayer;
      if (!cameraIsPlayer || !abstractClientPlayer.isUser() || this.renderManager.livingPlayer == abstractClientPlayer)

            Unassigned Unassigned
            clienthax nope.avi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: