aboutsummaryrefslogtreecommitdiff
path: root/src/voxel.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/voxel.h')
-rw-r--r--src/voxel.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/voxel.h b/src/voxel.h
index 2e8015eb1..6d1a318f1 100644
--- a/src/voxel.h
+++ b/src/voxel.h
@@ -384,6 +384,14 @@ public:
return m_data[m_area.index(p)];
}
+ MapNode getNodeNoExNoEmerge(v3s16 p)
+ {
+ if(m_area.contains(p) == false)
+ return MapNode(CONTENT_IGNORE);
+ if(m_flags[m_area.index(p)] & VOXELFLAG_INEXISTENT)
+ return MapNode(CONTENT_IGNORE);
+ return m_data[m_area.index(p)];
+ }
MapNode & getNodeRef(v3s16 p)
{
emerge(p);