- MapNode & getNodeRef(v3s16 p)
- {
- VoxelArea voxel_area(p);
- addArea(voxel_area);
- if(getFlagsRefUnsafe(p) & VOXELFLAG_NO_DATA)
- {
- /*dstream<<"EXCEPT: VoxelManipulator::getNode(): "
- <<"p=("<<p.X<<","<<p.Y<<","<<p.Z<<")"
- <<", index="<<m_area.index(p)
- <<", flags="<<(int)getFlagsRefUnsafe(p)
- <<" is inexistent"<<std::endl;*/
- throw InvalidPositionException
- ("VoxelManipulator: getNode: inexistent");
- }
- return getNodeRefUnsafe(p);
- }
- void setNode(v3s16 p, const MapNode &n)