Minecraft
  1. Minecraft
  2. MC-47508

Ridden entities disappear on relogin

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 14w06a, Minecraft 14w07a, Minecraft 14w08a, Minecraft 14w11b, Minecraft 14w17a, Minecraft 14w18b, Minecraft 14w21b, Minecraft 14w25b, Minecraft 14w27b, Minecraft 14w28b, Minecraft 14w30c, Minecraft 1.8, Minecraft 1.8.1-pre3, Minecraft 1.8.1, Minecraft 1.8.3, Minecraft 1.8.6, Minecraft 1.8.8, Minecraft 15w41b, Minecraft 15w45a, Minecraft 1.8.9, Minecraft 1.9 Pre-Release 2, Minecraft 1.9, Minecraft 1.9.1 Pre-Release 3, Minecraft 16w15b, Minecraft 1.10.2
    • Fix Version/s: Minecraft 16w43a
    • Security Level: Minecraft - Public (Viewable by everyone)
    • Environment:

      Windows 7 64bit, JAVA 7 u51

    • Confirmation Status:
      Confirmed

      Description

      Horses, Minecarts, Boats disappear after relogging.


      Steps to reproduce:

      1. Play a single player world
      2. Ride a horse (with a saddle?)
      3. Click ESC then open to LAN
      4. Save and quit to title screen
      5. Reload the world,

      And the horse will disappear, happens every time I do it.


      Code analysis by [Helper] Marcono1234 in this comment

        Issue Links

          Activity

          Hide
          [Helper] Marcono1234 added a comment -

          Please link to this comment in the description

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

          The reason why this is happening is very likely that the method net.minecraft.server.MinecraftServer.updateTimeLightAndEntities() runs all future tasks first. When the server is stopped one of this tasks is to logout all players. When a player gets logged out, the ridden entity is saved as RootVehicle in the player data and is removed from the world. After this the it runs a network tick (this.getNetworkSystem().networkTick();). The problem is that the players are logged out already but their connection still exists, however the channel is closed. So once this method is called, it logs the players out a second time. This time the players are not riding an entity anymore as it was removed during the last call already.

          Show
          [Helper] Marcono1234 added a comment - Please link to this comment in the description The following is based on decompiled version of Minecraft 1.9 using MCP 9.24 beta. All method and class names are the names used in the decompiled version. The reason why this is happening is very likely that the method net.minecraft.server.MinecraftServer.updateTimeLightAndEntities() runs all future tasks first. When the server is stopped one of this tasks is to logout all players. When a player gets logged out, the ridden entity is saved as RootVehicle in the player data and is removed from the world. After this the it runs a network tick ( this.getNetworkSystem().networkTick(); ). The problem is that the players are logged out already but their connection still exists, however the channel is closed. So once this method is called, it logs the players out a second time. This time the players are not riding an entity anymore as it was removed during the last call already.
          Hide
          [Helper] SunCat added a comment -

          Still in 1.9.1-pre3

          Show
          [Helper] SunCat added a comment - Still in 1.9.1-pre3
          Hide
          [Helper] SunCat added a comment -

          Still in 16w15b

          Show
          [Helper] SunCat added a comment - Still in 16w15b
          Hide
          bob added a comment -

          Which version exactly: 1.9.0 or 1.9.2?

          Show
          bob added a comment - Which version exactly: 1.9.0 or 1.9.2?
          Hide
          Clark Thomborson added a comment -

          Happened to me just now in 1.10.2 – lost my minecart by logging off while riding it. It's a long walk now

          Show
          Clark Thomborson added a comment - Happened to me just now in 1.10.2 – lost my minecart by logging off while riding it. It's a long walk now

            People

            • Assignee:
              [Mojang] Agnes Larsson
              Reporter:
              Rodney Hayes
            • Votes:
              44 Vote for this issue
              Watchers:
              26 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: