NBT Fixes.

I did it! I really fixed the tile entities. Now you can put something into machine's inventory, leave the world, re-enter it and it will be still there. MAGIC!