From 8aa930f28e69f3518831500022988ca2a4b6985d Mon Sep 17 00:00:00 2001 From: kwolekr Date: Wed, 26 Jun 2013 17:19:39 -0400 Subject: Add minetest.get_mapgen_object to API --- src/script/lua_api/l_item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/script/lua_api/l_item.cpp') diff --git a/src/script/lua_api/l_item.cpp b/src/script/lua_api/l_item.cpp index c69562dda..4069c61ce 100644 --- a/src/script/lua_api/l_item.cpp +++ b/src/script/lua_api/l_item.cpp @@ -466,7 +466,7 @@ int ModApiItemMod::l_get_content_id(lua_State *L) INodeDefManager *ndef = STACK_TO_SERVER(L)->getNodeDefManager(); content_t c = ndef->getId(name); - lua_pushnumber(L, c); + lua_pushinteger(L, c); return 1; /* number of results */ } -- cgit v1.2.3