diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 16:08:37 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-12-04 16:08:37 +0200 |
commit | ea36951bc4ac6d3cc1ebec44c0417cfaed20dfc5 (patch) | |
tree | 34ecfc0ce81e7fc85da7b9bb689c4e0359ea2555 /src | |
parent | 09c48b60bd0430084d0d5a93357147e5279f071b (diff) | |
download | minetest-ea36951bc4ac6d3cc1ebec44c0417cfaed20dfc5.tar.gz minetest-ea36951bc4ac6d3cc1ebec44c0417cfaed20dfc5.tar.bz2 minetest-ea36951bc4ac6d3cc1ebec44c0417cfaed20dfc5.zip |
Rename EnvRef:add_luaentity to EnvRef:add_entity
Diffstat (limited to 'src')
-rw-r--r-- | src/scriptapi.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index 9b37c53b4..a88d6be5a 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -2430,11 +2430,11 @@ private: } } - // EnvRef:add_luaentity(pos, entityname) + // EnvRef:add_entity(pos, entityname) // pos = {x=num, y=num, z=num} - static int l_add_luaentity(lua_State *L) + static int l_add_entity(lua_State *L) { - //infostream<<"EnvRef::l_add_luaentity()"<<std::endl; + //infostream<<"EnvRef::l_add_entity()"<<std::endl; EnvRef *o = checkobject(L, 1); ServerEnvironment *env = o->m_env; if(env == NULL) return 0; @@ -2600,7 +2600,7 @@ const luaL_reg EnvRef::methods[] = { method(EnvRef, get_node), method(EnvRef, get_node_or_nil), method(EnvRef, get_node_light), - method(EnvRef, add_luaentity), + method(EnvRef, add_entity), method(EnvRef, add_item), method(EnvRef, add_rat), method(EnvRef, add_firefly), |