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

Passengers in boats only rotate client-side if player is steering

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 1.10.2, Minecraft 16w41a
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      If a player is steering a boat, a second passenger will only rotate client-side.

      How to reproduce

      1. Use the following command
        /summon boat ~ ~ ~ {Passengers:[{id:"armor_stand"}]}
        
      2. Run the /entitydata command on the armor stand and have a look at its Rotation, it should be [0.0f,0.0f]
        /entitydata @e[type=armor_stand,c=1] {}
        
      3. Get in the boat and turn only very slightly
      4. Run the /entitydata command on the armor stand and have a look at its Rotation
        /entitydata @e[type=armor_stand,c=1] {}
        

        → It is still [0.0f,0.0f]

      The reason

      The following is based on a decompiled version of Minecraft 1.10 using MCP 9.30.

      This happens because the method net.minecraft.entity.item.EntityBoat.controlBoat() which modifies the net.minecraft.entity.item.EntityBoat.deltaRotation value is only called client-side. It might make more sense for not steering passengers to use the rotation of the boat.

      Note: At some point the method net.minecraft.entity.item.EntityBoat.applyYawToEntity(Entity) corrects the value.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marcono1234 [Mod] Marcono1234
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                CHK: