summaryrefslogtreecommitdiff
path: root/builtin/game/item.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/game/item.lua')
-rw-r--r--builtin/game/item.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/builtin/game/item.lua b/builtin/game/item.lua
index 5a83eafd2..2a4b4e38f 100644
--- a/builtin/game/item.lua
+++ b/builtin/game/item.lua
@@ -676,9 +676,7 @@ function core.node_dig(pos, node, digger)
-- Run script hook
for _, callback in ipairs(core.registered_on_dignodes) do
local origin = core.callback_origins[callback]
- if origin then
- core.set_last_run_mod(origin.mod)
- end
+ core.set_last_run_mod(origin.mod)
-- Copy pos and node because callback can modify them
local pos_copy = vector.new(pos)