Skip to content
Permalink
Browse files

Builtin: Fix error by digging unknown nodes

  • Loading branch information
SmallJoker committed Feb 16, 2020
1 parent 7ce2178 commit 3f675490df7d4dd0cdd3ac4afe2683fe8678b24d
Showing with 1 addition and 1 deletion.
  1. +1 −1 builtin/game/item.lua
@@ -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,

0 comments on commit 3f67549

Please sign in to comment.
You can’t perform that action at this time.