Skip to content

Commit

Permalink
report unknown node name and position
Browse files Browse the repository at this point in the history
  • Loading branch information
NatureFreshMilk committed Aug 19, 2019
1 parent ef132c7 commit 5eea843
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ function woodcutting_class:get_delay_time(pos)
local nodedef = minetest.registered_nodes[self.treenodes_hashed[poshash]]
if not nodedef then
-- in case the nodedef is not found
minetest.log("error", "[woodcutting] unknown Item: " ..
self.treenodes_hashed[poshash] ..
" @ " .. minetest.pos_to_string(pos))
return 1.0
end

Expand Down

0 comments on commit 5eea843

Please sign in to comment.