mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix MgStoneType and BiomeType enum names
This commit is contained in:
parent
87bc39dca7
commit
9b5c492be5
9 changed files with 34 additions and 34 deletions
|
@ -39,11 +39,11 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
|
||||
struct EnumString ModApiMapgen::es_BiomeTerrainType[] =
|
||||
{
|
||||
{BIOME_NORMAL, "normal"},
|
||||
{BIOME_LIQUID, "liquid"},
|
||||
{BIOME_NETHER, "nether"},
|
||||
{BIOME_AETHER, "aether"},
|
||||
{BIOME_FLAT, "flat"},
|
||||
{BIOMETYPE_NORMAL, "normal"},
|
||||
{BIOMETYPE_LIQUID, "liquid"},
|
||||
{BIOMETYPE_NETHER, "nether"},
|
||||
{BIOMETYPE_AETHER, "aether"},
|
||||
{BIOMETYPE_FLAT, "flat"},
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
|
@ -371,7 +371,7 @@ Biome *read_biome_def(lua_State *L, int index, INodeDefManager *ndef)
|
|||
return NULL;
|
||||
|
||||
BiomeType biometype = (BiomeType)getenumfield(L, index, "type",
|
||||
ModApiMapgen::es_BiomeTerrainType, BIOME_NORMAL);
|
||||
ModApiMapgen::es_BiomeTerrainType, BIOMETYPE_NORMAL);
|
||||
Biome *b = BiomeManager::create(biometype);
|
||||
|
||||
b->name = getstringfield_default(L, index, "name", "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue