Fixed an incorrect type conversion casuing negative block-IDs.

Fixed new blocks from 1.7 to not rendering correctly.