[1.18.2] Wardrobe contents not persisted. sometimes.
Yirok42 opened this issue ยท 3 comments
Describe the bug
Items in some wardrobes are empty or most item are not saved/persisted between world loads.
In my prior world this happened once with 2 wardrobes and I was not sure if I just misremembered. In this current world, I placed 8 wardrobes which I just made (black metal block, one grey dye) and I sorted loot into them. One had mostly chip related items: 1 zombie core of 8 (or something), 2 zombie cores of (10 or something), other zombie cores, and various chip sets, rams, cores, ram parts, core parts, silicon chips, and things related to "computer" parts; others had items similar: tools, drops, food, etc. 8 wardrobes. I closed the world and reloaded it, and 7 of the wardrobes were empty and the first one I placed has the first 3 cores detailed above. I put items in all 8 wardrobes, closed and reloaded. All these added items gone. I picked up and replaced all 8 wardrobes. This time the first three were able to save their items. I kept picking up the 'bad' wardrobes and placing them and putting countable number of items, and the losing was getting less, but still loosing. I just put all 8 down again, and put items in and it seems to only keep some of the items.
I considered perhaps this is because I am so close to spawn. I took the wardrobes away and was able to place them, exit, come back in, and the items were saved. I then went back to my base at/near spawn placed them, exited, came back, and now items are no longer being lost.
Also what may have happened to get them to save the items is that I put items in them, picked them up not empty, put them down, exited and came back, and that now 'changed' them from wardrobes that lose items to wardrobes that do not lose items.
I looked for backups of this world to try again in this same world but I have no backups.
To Reproduce
Steps to reproduce the behavior:
I do not know the steps, but to simplify the above ...
- Go to near spawn (this might not be important)
- Place wardrobes
- Fill them with good stuff.
- Do not pick them up
- Go about your business and eventually close the world (this is single player world not open to LAN)
- When you come back to the world, the wardrobes will be, or might be, empty or just contain a few zombie cores.
Additional context
This has happened in my last two worlds, and I do not know if the first time was near spawn.
I just got more grey dye and made two more wardrobes. I put them both down. I put items in one. I picked them both up. I put them both back down. I put more items in each. I closed and reopened, and they both kept their stuff. I have no idea why it only sometimes loses stuff every time and sometimes does not.
Version
Operating System: Windows 10 version 10.0
Minecraft Version: 1.18.2
Java Version: 17.0.2, Oracle Corporation
corpse-1.18.2-1.0.1
create-mc1.18.1_v0.4.1
flywheel-forge-1.18-0.6.2
Futurepack-1.18.2-33.0.7482
jei-1.18.2-9.5.5.174
journeymap-1.18.2-5.8.0
client-1.17.1-20210706.113038-srg
forge-1.18.2-40.0.42-universal
Minecraft chnaged when TileEntititys are saved, so now all tile need to call onChanged or they wont save at all. and find & adding alll those checks everywhere is kind of difficult. its easy to fix but spots can easily be missed. i the next version this should be fixed.
Some how once it does keep items, it continues to do so, as this only happens (i think) to the first wardrobes I make, never the white ones that come from research and not the ones I make later.
But I have now for the first time made an spraypaint device, a logistic editor, and i'll make a hologram unit when it get round to it.
Last (I assume) update from me on this. I have had success in avoiding this if I place the first wardrobes I craft, put items in the wardrobes, and then pick them up, and put them back down again. After this, when I leave and return to this world (world, not dimension) the wardrobes persist the contents. I'll be happy to hear this is fixed, but I now know how to avoid the issue.