Fixed two bugs.

Fixed the old pr by changing to ChatComponentStyle and creating the wrapper in the constructor.

Added a fix for bed placing where the id of the item was used instead of the id of the block.