GizmoTheMoonPig / luggage

Recreation of OpenBlocks luggage for modern MC versions
MIT License
3 stars 2 forks source link

Inventory dissappears on relog #35

Open jmadarg opened 2 weeks ago

jmadarg commented 2 weeks ago

Forge or Fabric

NeoForge 1.21.1

Mod Version

1.6.7

Client Log

https://gist.github.com/jmadarg/ee96aea498db80c3d67b89aa2a2b563e#file-luggagetest-latest-log

Crash Report (if applicable)

No response

Bug Description

While playing on an modded server (NeoForge 21.1.41, MC 1.21.1) I noticed that if I had anything in my Luggage and disconnected then connected again, the inventory of the luggage would get wiped.

I then tested on a singleplayer world with the same pack and had the same issue. I noticed in the provided latest.log that in line 1990 it says [Server thread/ERROR] [net.minecraft.world.item.ItemStack/]: Tried to load invalid item: 'No key id in MapLike[{Slot:12b}]' with similar messages in the following lines

I'm also sharing this, my debug.log https://gist.github.com/jmadarg/d97df93067f049cf105dba68882fde83

Steps to Reproduce

  1. Join a world/server
  2. Get and place a luggage
  3. Leave the world/server
  4. Join the world/server once more
  5. Luggage's inventory is gone

Please Read and Confirm The Following

jmadarg commented 2 weeks ago

I just tested something I didn't think about earlier. If you grab the luggage instead of leaving it as entity in the world, it does keep it's inventory.