Masks are now checked in setBlock instead of rawSetBlock.

Untested!!!