Skip to content

Commit 3f67549

Browse files
committedFeb 16, 2020
Builtin: Fix error by digging unknown nodes
1 parent 7ce2178 commit 3f67549

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎builtin/game/item.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ function core.node_dig(pos, node, digger)
621621
core.remove_node(pos)
622622

623623
-- Play sound if it was done by a player
624-
if diggername ~= "" and def.sounds and def.sounds.dug then
624+
if diggername ~= "" and def and def.sounds and def.sounds.dug then
625625
core.sound_play(def.sounds.dug, {
626626
pos = pos,
627627
exclude_player = diggername,

0 commit comments

Comments
 (0)