summaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_env.cpp
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2013-06-27 21:12:44 -0400
committerkwolekr <kwolekr@minetest.net>2013-06-27 22:35:35 -0400
commit6b3169e4d0ebd82661d7cca9e3a381124a897f1a (patch)
tree2990953547b3188aee6e5dfa7c68670e0046d31d /src/script/lua_api/l_env.cpp
parent2e292b67a0a02b045969034c06aaf92b42a83a81 (diff)
downloadminetest-6b3169e4d0ebd82661d7cca9e3a381124a897f1a.tar.gz
minetest-6b3169e4d0ebd82661d7cca9e3a381124a897f1a.tar.bz2
minetest-6b3169e4d0ebd82661d7cca9e3a381124a897f1a.zip
LuaVoxelManip: Separate VoxelManip data get/set from emerging/blitting data back to map
Diffstat (limited to 'src/script/lua_api/l_env.cpp')
-rw-r--r--src/script/lua_api/l_env.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/script/lua_api/l_env.cpp b/src/script/lua_api/l_env.cpp
index b6bafbcd9..02cafc0d5 100644
--- a/src/script/lua_api/l_env.cpp
+++ b/src/script/lua_api/l_env.cpp
@@ -594,22 +594,13 @@ int ModApiEnvMod::l_get_mapgen_object(lua_State *L)
luaL_getmetatable(L, "VoxelManip");
lua_setmetatable(L, -2);
- // VoxelManip data
- int volume = vm->m_area.getVolume();
- lua_newtable(L);
- for (int i = 0; i != volume; i++) {
- lua_Number cid = vm->m_data[i].getContent();
- lua_pushnumber(L, cid);
- lua_rawseti(L, -2, i + 1);
- }
-
// emerged min pos
push_v3s16(L, vm->m_area.MinEdge);
// emerged max pos
push_v3s16(L, vm->m_area.MaxEdge);
- nargs = 4;
+ nargs = 3;
break; }
case MGOBJ_HEIGHTMAP: {