jaquadro / StorageDrawers

A mod adding compartmental storage for Minecraft Forge
MIT License
202 stars 159 forks source link

Drawer contents being deleted randomly on chunk loading/re-render. 1.12.2 5.3.6 #643

Open shikyo13 opened 6 years ago

shikyo13 commented 6 years ago

In my singleplayer world drawer contents are very frequently, but seemingly randomly getting deleted. I will have a drawer with over 2k items in it, then fly away, come back and it's empty. All of my drawers are connected to controllers with items being automatically inserted, so sometimes the drawer that had several thousand items, will be replaced with another item type entirely. What log info can I provide?

Modlist: https://pastebin.com/Gad429PN

codewarrior0 commented 6 years ago

I noticed a drawer that was holding Dry Rubber from Industrial Foregoing had spontaneously emptied itself, and also changed its orientation. Oddly, it was still being filled from the rubber source. I took a peek at its saved data using MCEdit and saw this:

image

Not sure what to make of it just yet.

StorageDrawers-1.12.2-5.3.6

codewarrior0 commented 6 years ago

Shift-right-clicking on it to open the GUI appears to change it to hold one stack of Dry Rubber, and this amount does not change when rubber is inserted by item transport.

Curiously, I can insert and extract items by hand using the side of the drawer that was formerly the front, so it seems like this is a client-side issue, maybe something is getting out of sync?

EDIT: This is probably related to #646, and not this issue.

mcdodge34 commented 6 years ago

I use latest version of your mod which is the 1.12.2-5.3.7 along with forge 2705

I have the same issue after adding some mods to my pack, I can't get my drawers to show their correct content anymore, if I craft brand new drawers, no matter the type, and I put them down, they are rotated and look like oak drawers instead of their real supposed version, theses drawers are also useless then, you can't put anything in them.

shikyo13 commented 6 years ago

This issue still persists using the 5.3.7 version of the mod. In my test I placed 4 storage drawers, and 1 controller. I have a hopper putting items from a creeper farm into the controller. Gunpowder was placed in the first drawer and locked. After working in the nether for some time and returning to my base, creeper hearts are now occupying the first storage drawer and gunpowder in now in the 3rd. Nearly 2 thousand gunpowder has been deleted from the first drawer.

jaquadro commented 5 years ago

I wonder if a TileEntity was deleted. Various interactions will cause the block to re-create its TileEntity if missing, and then if it was being fed by some automated source it would populate again because any previous lock status would have also been lost. But how might a TE be getting lost in the first place?