Do you want to do a `Math.round` on the value to ensure it's an integer?  Then maybe you could do the max with 0 instead of 1 ... in most cases a person won't want an inventory with a capacity of 0, but maybe in some cases they will.  :wink: