aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2014-12-28 03:11:00 -0500
committerkwolekr <kwolekr@minetest.net>2014-12-28 03:11:00 -0500
commit900fa26965a2fbdf2b9de74e2d680c083de91482 (patch)
tree01bce4aa413ddde84ee0387a5a69875a437887d1 /src/script/lua_api
parent8c98f497d957835803dd43a98a23a5d0eb98124c (diff)
downloadminetest-900fa26965a2fbdf2b9de74e2d680c083de91482.tar.gz
minetest-900fa26965a2fbdf2b9de74e2d680c083de91482.tar.bz2
minetest-900fa26965a2fbdf2b9de74e2d680c083de91482.zip
Ore: Add Blob ore type
Diffstat (limited to 'src/script/lua_api')
-rw-r--r--src/script/lua_api/l_mapgen.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/script/lua_api/l_mapgen.cpp b/src/script/lua_api/l_mapgen.cpp
index 383fbeaef..8c81412b1 100644
--- a/src/script/lua_api/l_mapgen.cpp
+++ b/src/script/lua_api/l_mapgen.cpp
@@ -68,9 +68,9 @@ struct EnumString ModApiMapgen::es_MapgenObject[] =
struct EnumString ModApiMapgen::es_OreType[] =
{
- {ORE_SCATTER, "scatter"},
- {ORE_SHEET, "sheet"},
- {ORE_CLAYLIKE, "claylike"},
+ {ORE_TYPE_SCATTER, "scatter"},
+ {ORE_TYPE_SHEET, "sheet"},
+ {ORE_TYPE_BLOB, "blob"},
{0, NULL},
};
@@ -642,7 +642,7 @@ int ModApiMapgen::l_register_ore(lua_State *L)
OreManager *oremgr = getServer(L)->getEmergeManager()->oremgr;
enum OreType oretype = (OreType)getenumfield(L, index,
- "ore_type", es_OreType, ORE_SCATTER);
+ "ore_type", es_OreType, ORE_TYPE_SCATTER);
Ore *ore = oremgr->create(oretype);
if (!ore) {
errorstream << "register_ore: ore_type " << oretype << " not implemented";