add_luaentity->add_entity in mods/experimental
authorPerttu Ahola <celeron55@gmail.com>
Sat, 10 Dec 2011 23:52:37 +0000 (01:52 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 10 Dec 2011 23:52:37 +0000 (01:52 +0200)
data/mods/experimental/init.lua

index 51e86c23460b9b8e704f419ba71f91db78dd417e..6b82b02a2237462e249ca3dd00331ea27a248e02 100644 (file)
@@ -169,7 +169,7 @@ minetest.register_node("experimental:tnt", {
 minetest.register_on_punchnode(function(p, node)
        if node.name == "experimental:tnt" then
                minetest.env:remove_node(p)
-               minetest.env:add_luaentity(p, "experimental:tnt")
+               minetest.env:add_entity(p, "experimental:tnt")
                nodeupdate(p)
        end
 end)