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 /data/mods/default/init.lua | |
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 'data/mods/default/init.lua')
-rw-r--r-- | data/mods/default/init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/data/mods/default/init.lua b/data/mods/default/init.lua index 1bd1eba4a..e2d267d4e 100644 --- a/data/mods/default/init.lua +++ b/data/mods/default/init.lua @@ -148,7 +148,7 @@ -- ^ Returns nil for unloaded area -- - get_node_light(pos, timeofday) -> 0...15 or nil -- ^ timeofday: nil = current time, 0 = night, 0.5 = day --- - add_luaentity(pos, name) +-- - add_entity(pos, name) -- - add_item(pos, itemstring) -- - add_rat(pos) -- - add_firefly(pos) @@ -1335,7 +1335,7 @@ function nodeupdate_single(p) n_bottom = minetest.env:get_node(p_bottom) if n_bottom.name == "air" then minetest.env:remove_node(p) - minetest.env:add_luaentity(p, "default:falling_"..n.name) + minetest.env:add_entity(p, "default:falling_"..n.name) nodeupdate(p) end end @@ -1491,7 +1491,7 @@ minetest.register_on_chat_message(function(name, message) print("Unable to spawn entity, player is nil") return true -- Handled chat message end - minetest.env:add_luaentity(player:getpos(), entityname) + minetest.env:add_entity(player:getpos(), entityname) minetest.chat_send_player(name, '"'..entityname ..'" spawned.'); return true -- Handled chat message |