Hell all, it seems that we have all noticed how our items get deleted when we move them to a chest ''due to lag''. This is not due to lag, it's a glitch where you add a stack of an item to a different stack in the chest, or the same item to a full stack. This deletes the object as it has nowhere to go. It's very annoying, as after hours of mining you come back to your house with 98 MESE, then try to put it in a chest and poof it's gone.
So, I propose a solution. This solution would be, where the server checks if the item being placed in a chest can not fit into the stack it is being placed in, so it swaps the held item with what's in the chest. Just like in the player inventory.
It would be simple, I guess. Where that when someone places an object into the chest, it first checks if the stack it's being placed in is different, and if so the items are swapped. If not, then it checks if it's the same item. If it is, and can not completely fit into the stack, the remainder of the items are not placed. If there is room, the items are placed.
Any support?