using invSize instead of hardcoded 108

hey !
I wrote you on the forums. I want to contribute, its a great program.
here's a bugfix I discovered as i tried apiarist chests