IronBackpacks icon indicating copy to clipboard operation
IronBackpacks copied to clipboard

Fix Backpacks Lost With KeepInventoryOn If Disconnect Before Respawn

Open callmesabs opened this issue 7 years ago • 5 comments

Issue Description:

In a server using vanilla "keep inventory on death" mechanics, backpacks disappear after death if disconnected before respawning.

What happens:

On a server with vanilla keep inventory mechanics enabled, after dying, if the server crashes prior to the player being able to respawn, or if the player disconnects intentionally without respawning, the backpack disappears from the backpack "slot" and is never restored.

What you expected to happen:

On a server with vanilla keep inventory mechanics enabled, after dying, disconnect or be disconnected, and then re-connect later. The backpack is returned to the backpack "slot" when the rest of the inventory is restored.

Steps to reproduce (important):

  1. Wear backpack using configured keybind
  2. Die
  3. Do not respawn
  4. Get disconnected, either intentionally or due to a client crash
  5. Reconnect
  6. Respawn
  7. Attempt to open or remove backpack. Neither works. ...

Affected Versions (Do not use "latest"):

  • IronBackpacks: 1.10.2-2.2.17
  • Minecraft: 1.10.2
  • Forge: 1.10.2-12.18.3.2185
  • Other Conflicting Mods (may be irrelevant to your issue): irrelevant

callmesabs avatar Dec 31 '16 02:12 callmesabs

Thank you for the bug report. Know that I am working on this issue, it just is a bit tricky with this particular corner case. It's next up on my list of bugs to squash though, so hopefully it will be taken care of relatively soon.

gr8pefish avatar Jan 04 '17 19:01 gr8pefish

i'm not sure if i have a related issue, or what's going on: i've had 2 bags disappear, but i don't know when it happened.

i'm running the Direwolf20 pack, local in single player. no crashes (yet). although sometimes, when i sleep in a bed, the it get's stuck and the player isn't able to leave the bed (the screen where the button "leave bed" is visible, but when you click it, the screen stays ad infinitum). maybe that's related to the OP mentioning "didn't spawn".

MC 1.10.2 Iron Backpacks 2.2.21

let me know if i can help test this any more.

Fiyorin avatar Jan 26 '17 12:01 Fiyorin

@cinch It should be unrelated, but thanks for the idea. Relatedly, to fix that bug check out my other mod Bed Bugs.

gr8pefish avatar Feb 27 '17 15:02 gr8pefish

On a way to "fix" this issue in-game, is there any way to check the UUIDs of backpacks and/or give yourself a backpack with a specific UUID?

Starwort avatar Oct 01 '17 09:10 Starwort