mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add minetest.clear_registered_decorations() and clear_registered_ores()
This commit is contained in:
parent
cec141adc1
commit
cf8213ea82
12 changed files with 97 additions and 11 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue