sk89q/worldedit — pull request #204 by snaxson (2012-08-06 05:46:27+00:00)
Title: Fix loading schematic files with block data values >127

Minecraft 1.3 introduces several blocks with data values
over 127, such as sandstone stairs (128). Since byte
is signed, implicit conversion to short results in
negative block data values that cause later IndexOutOfBounds
exceptions. This change explicitly masks off the extended
sign bits so the result is positive.