Uploaded image for project: 'Minecraft'
  1. Minecraft
  2. MC-87989

Wrong line when casting fishing rod in third person view

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 15w36c, Minecraft 15w47c, Minecraft 1.9, Minecraft 16w35a
    • Fix Version/s: Minecraft 16w44a
    • Confirmation Status:
      Confirmed

      Description

      The bug

      When casting a fishing rod for the first few ticks the line connecting the rod and the hook is pointing away from (0|0|0).

      The reason

      The following is based on decompiled version of Minecraft 1.8 using MCP. All method and class names are the names used in the decompiled version.

      The reason why this happens is that the public void func_180558_a(EntityFishHook p_180558_1_, double p_180558_2_, double p_180558_4_, double p_180558_6_, float p_180558_8_, float p_180558_9_) method of the net.minecraft.client.renderer.entity.RenderFish class uses the fields prevPosX, prevPosY and prevPosZ of the fishing hook to render the line. However until the fishing hook is not updated, its prevPosX, prevPosY and prevPosZ fields are all 0d. This could be solved by setting them all to the current coordinate values in the constructor. In general it might make sense to do this for all entities.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Excited [Mojang] Maria Lemón
                Reporter:
                marcono1234 [Helper] Marcono1234
              • Votes:
                2 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  CHK: