Builtin: Fix error by digging unknown nodes

master
SmallJoker 2020-02-16 14:01:05 +01:00
parent 7ce21788f8
commit 3f675490df
1 changed files with 1 additions and 1 deletions

View File

@ -621,7 +621,7 @@ function core.node_dig(pos, node, digger)
core.remove_node(pos)
-- Play sound if it was done by a player
if diggername ~= "" and def.sounds and def.sounds.dug then
if diggername ~= "" and def and def.sounds and def.sounds.dug then
core.sound_play(def.sounds.dug, {
pos = pos,
exclude_player = diggername,