From 9736548720a96c9c7f739edb0435d9ba4ad80652 Mon Sep 17 00:00:00 2001 From: kwolekr Date: Thu, 15 Jan 2015 16:20:05 -0500 Subject: Add ability to delete MapBlocks from map Also add a Lua API and chatcommand for this --- src/database-dummy.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/database-dummy.cpp') diff --git a/src/database-dummy.cpp b/src/database-dummy.cpp index df1057274..62483c81b 100644 --- a/src/database-dummy.cpp +++ b/src/database-dummy.cpp @@ -59,6 +59,11 @@ std::string Database_Dummy::loadBlock(v3s16 blockpos) return ""; } +bool Database_Dummy::deleteBlock(v3s16 blockpos) +{ + m_database.erase(getBlockAsInteger(blockpos)); +} + void Database_Dummy::listAllLoadableBlocks(std::list &dst) { for(std::map::iterator x = m_database.begin(); x != m_database.end(); ++x) -- cgit v1.2.3