Compare commits

...

1 Commits

Author SHA1 Message Date
cora 651a477113 add nil check in can_harvest 2021-06-15 01:13:24 +02:00
1 changed files with 6 additions and 2 deletions

View File

@ -207,6 +207,10 @@ end
function mcl_autogroup.can_harvest(nodename, toolname)
local ndef = minetest.registered_nodes[nodename]
if not ndef then
return false
end
if minetest.get_item_group(nodename, "dig_immediate") >= 2 then
return true
end