mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
Add ability to delete MapBlocks from map
Also add a Lua API and chatcommand for this
This commit is contained in:
parent
0330cec7ec
commit
9736548720
15 changed files with 187 additions and 19 deletions
|
@ -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<v3s16> &dst)
|
||||
{
|
||||
for(std::map<u64, std::string>::iterator x = m_database.begin(); x != m_database.end(); ++x)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue