Fixed the old commit.
Fixed a issue when placing beds.

The bed item id and the bed block id were diffrent
Merge pull request #31 from EhudB/master

Fixed two bugs.