Offline Player on horse #22

Closed
opened 2015-05-31 16:16:19 -04:00 by rumickon · 1 comment
rumickon commented 2015-05-31 16:16:19 -04:00 (Migrated from github.com)

When player logout on horse and somebody changing him inventory, the horse will be disappear.

When player logout on horse and somebody changing him inventory, the horse will be disappear.
Jikoo commented 2016-11-27 17:37:41 -05:00 (Migrated from github.com)

Had a look into this, my suspicion is that the chunk the player is in is unloaded. Haven't tested yet, but we may be able to fix it by keeping the chunks players are in loaded rather than rewriting the entire save process to use NMS.

When a player logs in, their mount is read out of the NBT tag. If it exists, it's spawned and the player is set riding it. When we go to save, the entity does not exist any more.

Had a look into this, my suspicion is that the chunk the player is in is unloaded. Haven't tested yet, but we may be able to fix it by keeping the chunks players are in loaded rather than rewriting the entire save process to use NMS. When a player logs in, their mount is read out of the NBT tag. If it exists, it's spawned and the player is set riding it. When we go to save, the entity does not exist any more.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: minster586/OpenInv#22
No description provided.