diff options
Diffstat (limited to 'src/map.h')
-rw-r--r-- | src/map.h | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -198,13 +198,12 @@ public: bool isValidPosition(v3s16 p); // throws InvalidPositionException if not found - MapNode getNode(v3s16 p); - - // throws InvalidPositionException if not found void setNode(v3s16 p, MapNode & n); // Returns a CONTENT_IGNORE node if not found - MapNode getNodeNoEx(v3s16 p); + // If is_valid_position is not NULL then this will be set to true if the + // position is valid, otherwise false + MapNode getNodeNoEx(v3s16 p, bool *is_valid_position = NULL); void unspreadLight(enum LightBank bank, std::map<v3s16, u8> & from_nodes, |