Check if a block is inside the boundary of the map before add it into the space map.
Merge pull request #1086 from shujingke/FixingSpaceMap

Check if a block is inside the boundary of the map before add it into th...