comments + safety check (on slot to avoid ArrayIndexOutOfBounds / on
inventory to avoid NullPointer)