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

Teleporting ridden entity in unloaded chunks does not cause chunks to load for riding player

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: Minecraft 14w02b, Minecraft 14w02c, Minecraft 14w03a, Minecraft 14w05a, Minecraft 14w07a, Minecraft 14w08a, Minecraft 14w10a, Minecraft 14w17a, Minecraft 14w19a, Minecraft 14w25a, Minecraft 14w28a, Minecraft 14w28b, Minecraft 14w30a, Minecraft 14w31a, Minecraft 14w32b, Minecraft 14w33a, Minecraft 14w34d, Minecraft 1.8-pre1, Minecraft 1.8-pre3, Minecraft 1.8, Minecraft 1.8.3, Minecraft 15w49b, Minecraft 16w33a, Minecraft 1.11.2, Minecraft 1.12.1, Minecraft 1.12.2, Minecraft 1.13-pre8, Minecraft 1.13, Minecraft 18w30b, Minecraft 18w31a, Minecraft 18w32a, Minecraft 18w33a, Minecraft 1.13.1-pre1, Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43b, Minecraft 18w45a, Minecraft 18w46a, Minecraft 18w48a, Minecraft 18w48b, Minecraft 18w49a, Minecraft 19w04b, Minecraft 19w07a, Minecraft 19w12b, Minecraft 19w13b, Minecraft 19w14a, Minecraft 19w14b, Minecraft 1.14.3
    • Fix Version/s: None
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      The bug

      Teleporting an entity which is ridden by a player into unloaded chunks teleports the player (client-side) but does not load the chunks

      How to reproduce

      1. Place a boat and enter it
      2. Use the following command
        /tp @e[type=minecraft:boat,sort=nearest] ~ ~ ~5000
        
      1. Enable the debug information
        → You will see that you were teleported (client-side), but using for example commands which print the block coordinates like /testforblock ~ ~ ~ air show that server-side you have not moved

      The screenshots show a mounted horse before teleporting at 0,1000; the "void" after teleporting the horse; and the mounted horse at 0,5000 right after relogging.

      Code analysis

      Based on 1.11.2 decompiled using MCP 9.35 rc1

      The reason is the same one as for MC-92916 and MC-108469: The method net.minecraft.world.World.updateEntityWithOptionalForce(Entity, boolean) does not update entities which are not in loaded chunks server-side. The problem here is that the riding player is not instantly moved with the ridden entity but instead when the method Entity.updateRidden() is called, which in this case never happens because the area around the ridden entity is not loaded.

        Attachments

        1. 2019-06-24 13-58-18.mp4
          4.28 MB
        2. after_relogging.png
          after_relogging.png
          554 kB
        3. after_teleporting.png
          after_teleporting.png
          494 kB
        4. before_teleporting.png
          before_teleporting.png
          154 kB

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Asteraoth [Mod] Asteraoth
              • Votes:
                18 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  CHK: