V0id's Smart Backpack contents lost
Created by: bluelightning32
Issue Description:
After logging out and logging back in, the contents of backpacks from the V0id's smart Backpacks mod are lost. The mod is storing the backpack contents in the ForgeCaps tag.
As this bug describes, the ForgeCaps are lost by Sponge: https://github.com/AuraDevelopmentTeam/InvSync/issues/37
v0id backpack has an option to equip the backpack using a button. The equipped backpack does not show up any where in the inventory, but it can be accessed with a button. Equipped backpacks are not saved by invsync. So their contents are not lost but their contents are not transferred between servers either.
Steps to reproduce:
- Get a backpack
- Put something in it.
- Log out.
- Log back in and the contents are lost.
Affected Versions (Do not use "latest"):
- Minecraft: 1.11.2
- InvSync: InvSync-0.6.19.307-DEV.jar
- Sponge: spongeforge-1.12.2-2768-7.1.6-RC3616.jar
- Other related mods: V0id's Smart Backpacks-1.0.6.jar
Your most recent log or stack trace file where the issue was present:
Before logging out:
$ nbtutil --path 2e15e144-51b9-4f4b-a495-74dc0765a409.dat --printtree
...
| + 6 entries
| | + Count: 1
| | + Slot: 1
| | + Damage: 0
| | + id: v0idssmartbackpacks:backpack
| | + ForgeCaps: 2 entries
| | | + astralsorcery:cap_item_amulet_holder: 2 entries
| | | | + AS_Amulet_HolderLeast: -6587230391593753591
| | | | + AS_Amulet_HolderMost: 3320807983800733515
| | | + Parent: 5 entries
| | | + color: 0
| | | + energy: 0
| | | + maxEnergy: 0
| | | + inventory: 2 entries
| | | | + Size: 18
| | | | + Items: 1 entry
| | | | + 6 entries
| | | | + Count: 1
| | | | + Damage: 12
| | | | + Slot: 0
| | | | + id: minecraft:iron_pickaxe
| | | | + ForgeCaps: 1 entry
| | | | | + astralsorcery:cap_item_amulet_holder: 0 entries
| | | | + tag: 1 entry
| | | | + pickletweaks: 1 entry
| | | | + BlocksBroken: 17
| | | + upgrades: 2 entries
| | | + Size: 5
| | | + Items: 0 entries
| | + tag: 2 entries
| | + backpack_tag: 4 entries
| | | + color: 0
| | | + energy: 0
| | | + energyMax: 0
| | | + upgrades: 2 entries
| | | + Size: 5
| | | + Items: 0 entries
| | + vsb:nbtItemHandler: 2 entries
| | + Size: 18
| | + Items: 1 entry
| | + 6 entries
| | + Count: 1
| | + Damage: 12
| | + Slot: 0
| | + id: minecraft:iron_pickaxe
| | + ForgeCaps: 1 entry
| | | + astralsorcery:cap_item_amulet_holder: 0 entries
| | + tag: 1 entry
| | + pickletweaks: 1 entry
| | + BlocksBroken: 17
...
After logging out and back in the ForgeCaps are lost:
$ nbtutil --path 2e15e144-51b9-4f4b-a495-74dc0765a409.dat --printtree
...
+ Inventory: 3 entries
| + 6 entries
| | + Count: 1
| | + Slot: 1
| | + Damage: 0
| | + id: v0idssmartbackpacks:backpack
| | + ForgeCaps: 2 entries
| | | + astralsorcery:cap_item_amulet_holder: 2 entries
| | | | + AS_Amulet_HolderLeast: -6587230391593753591
| | | | + AS_Amulet_HolderMost: 3320807983800733515
| | | + Parent: 5 entries
| | | + color: 0
| | | + energy: 0
| | | + maxEnergy: 0
| | | + inventory: 2 entries
| | | | + Size: 18
| | | | + Items: 0 entries
| | | + upgrades: 2 entries
| | | + Size: 5
| | | + Items: 0 entries
| | + tag: 2 entries
| | + backpack_tag: 4 entries
| | | + color: 0
| | | + energy: 0
| | | + energyMax: 0
| | | + upgrades: 2 entries
| | | + Size: 5
| | | + Items: 0 entries
| | + vsb:nbtItemHandler: 2 entries
| | + Size: 18
| | + Items: 1 entry
| | + 6 entries
| | + Count: 1
| | + Damage: 12
| | + Slot: 0
| | + id: minecraft:iron_pickaxe
| | + ForgeCaps: 1 entry
| | | + astralsorcery:cap_item_amulet_holder: 0 entries
| | + tag: 1 entry
| | + pickletweaks: 1 entry
| | + BlocksBroken: 17
...