fix server crash bug - thanks @leo_rockway
This commit is contained in:
parent
79e602f67e
commit
022f3c97cf
@ -46,7 +46,7 @@ minetest.register_entity("particles:particle", {
|
|||||||
minetest.register_on_dignode(function(pos, oldnode, digger)
|
minetest.register_on_dignode(function(pos, oldnode, digger)
|
||||||
local node = minetest.registered_nodes[oldnode.name]
|
local node = minetest.registered_nodes[oldnode.name]
|
||||||
-- if the no_particles group is set dont add particles
|
-- if the no_particles group is set dont add particles
|
||||||
if node == nil or node.groups.no_particles then
|
if not node or node.groups.no_particles or not digger then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
-- try to get the textures from the dig_result instead of the digged node
|
-- try to get the textures from the dig_result instead of the digged node
|
||||||
|
Loading…
x
Reference in New Issue
Block a user