master
Brett O'Donnell 2012-09-20 16:29:09 +09:30
parent 516f94161b
commit de6c7c9da1
1 changed files with 1 additions and 4 deletions

View File

@ -45,11 +45,8 @@ minetest.register_entity("particles:particle", {
-- register_on_dignode
minetest.register_on_dignode(function(pos, oldnode, digger)
local node = minetest.registered_nodes[oldnode.name]
if node == nil then
return
end
-- if the no_particles group is set dont add particles
if node.groups.no_particles then
if node == nil or node.groups.no_particles then
return
end
-- try to get the textures from the dig_result instead of the digged node