clean
parent
516f94161b
commit
de6c7c9da1
5
init.lua
5
init.lua
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue