Fix a bug with takeTopItem() inventory management. This fixed it, @ErogenousBeef!