add_luaentity->add_entity in mods/experimental
parent
e06d4555bf
commit
012bcbcb48
|
@ -169,7 +169,7 @@ minetest.register_node("experimental:tnt", {
|
||||||
minetest.register_on_punchnode(function(p, node)
|
minetest.register_on_punchnode(function(p, node)
|
||||||
if node.name == "experimental:tnt" then
|
if node.name == "experimental:tnt" then
|
||||||
minetest.env:remove_node(p)
|
minetest.env:remove_node(p)
|
||||||
minetest.env:add_luaentity(p, "experimental:tnt")
|
minetest.env:add_entity(p, "experimental:tnt")
|
||||||
nodeupdate(p)
|
nodeupdate(p)
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue