Skip to content

Commit

Permalink
moar nil-checking
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Feb 20, 2020
1 parent bd4547f commit 8fe8d9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion init.lua
Expand Up @@ -120,7 +120,7 @@ function woodcutting_class:get_delay_time(pos)
if not nodedef then
-- in case the nodedef is not found
minetest.log("error", "[woodcutting] unknown Item: " ..
self.treenodes_hashed[poshash] ..
(self.treenodes_hashed[poshash] or ("poshash:" .. poshash or "!")) ..
" @ " .. (minetest.pos_to_string(pos) or "?"))
return 1.0
end
Expand Down

0 comments on commit 8fe8d9c

Please sign in to comment.