diff options
-rw-r--r-- | src/utility.h | 2 | ||||
-rw-r--r-- | src/voxel.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/utility.h b/src/utility.h index 497f79fa0..df151fd87 100644 --- a/src/utility.h +++ b/src/utility.h @@ -1456,6 +1456,8 @@ public: i.getNode()->getValue()); } + return *this; + } Settings & operator=(Settings &other) diff --git a/src/voxel.h b/src/voxel.h index 6d1a318f1..51df18299 100644 --- a/src/voxel.h +++ b/src/voxel.h @@ -453,12 +453,14 @@ public: if(m_area.contains(p) == false) return false; m_data[m_area.index(p)] = n; + return true; } bool setNodeNoEmerge(s32 i, MapNode n) { if(m_area.contains(i) == false) return false; m_data[i] = n; + return true; } /*bool setContentNoEmerge(v3s16 p, u8 c) { |