From 3899f83da879e11cf531c88514772b890d060721 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 2 Jun 2012 11:01:28 +0300 Subject: NodeMetaRef:{to,from}_table and lua_api.txt additions --- src/map.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/map.cpp') diff --git a/src/map.cpp b/src/map.cpp index c981567ae..10dba3de9 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1009,6 +1009,12 @@ void Map::addNodeAndUpdate(v3s16 p, MapNode n, n.setLight(LIGHTBANK_DAY, LIGHT_SUN, nodemgr); } + /* + Remove node metadata + */ + + removeNodeMetadata(p); + /* Set the node on the map */ @@ -3451,15 +3457,15 @@ MapBlock* ServerMap::loadBlock(v3s16 blockpos) } catch(InvalidFilenameException &e) { - return false; + return NULL; } catch(FileNotGoodException &e) { - return false; + return NULL; } catch(std::exception &e) { - return false; + return NULL; } } -- cgit v1.2.3