Added a NPE check for block in Vector3.setBlock