When i logged off i had a stack of 6 bread in my bag and i stayed logged off for enough time for the stack to go rotten. When i logged in next i saw i had a number of stacks of rotten bread, curiously enough in incrementing stack sizes:
![Image](%5Battachment=0%5DbugRottenFood.png%5B/attachment%5D)
It looks as if the code is trying to create items in a loop up until the size of the original stack is reached instead of just one stack with the size of the original stack.