Fixed an incorrect type conversion casuing negative block-IDs.
Merge pull request #286 from evildeeds/color-lookup-fix

Fixed an incorrect type conversion casuing negative block-IDs.