forked from mtcontrib/pipeworks
fix a crash (#190)
This commit is contained in:
parent
769dd7fe7b
commit
f9f436fd7e
|
@ -109,7 +109,7 @@ local register_one_tube = function(name, tname, dropname, desc, plain, noctrs, e
|
||||||
after_place_node = pipeworks.after_place,
|
after_place_node = pipeworks.after_place,
|
||||||
after_dig_node = pipeworks.after_dig,
|
after_dig_node = pipeworks.after_dig,
|
||||||
on_blast = function(pos, intensity)
|
on_blast = function(pos, intensity)
|
||||||
if intensity > 1 + 3^0.5 then
|
if not intensity or intensity > 1 + 3^0.5 then
|
||||||
minetest.remove_node(pos)
|
minetest.remove_node(pos)
|
||||||
return {string.format("%s_%s", name, dropname)}
|
return {string.format("%s_%s", name, dropname)}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user