mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add minetest.clear_registered_decorations() and clear_registered_ores()
This commit is contained in:
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#include "mapgen.h"
|
||||
#include "voxel.h"
|
||||
#include "noise.h"
|
||||
#include "gamedef.h"
|
||||
#include "mg_biome.h"
|
||||
#include "mapblock.h"
|
||||
#include "mapnode.h"
|
||||
@@ -381,6 +382,12 @@ void GenerateNotifier::getEvents(
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
GenElementManager::GenElementManager(IGameDef *gamedef)
|
||||
{
|
||||
m_resolver = gamedef->getNodeDefManager()->getResolver();
|
||||
}
|
||||
|
||||
|
||||
GenElementManager::~GenElementManager()
|
||||
{
|
||||
for (size_t i = 0; i != m_elements.size(); i++)
|
||||
|
Reference in New Issue
Block a user