mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-29 14:01:07 +01:00
Fix #1348
This commit is contained in:
parent
906aa3b434
commit
10154d5778
1 changed files with 1 additions and 1 deletions
|
@ -209,7 +209,7 @@ function mcl_autogroup.can_harvest(nodename, toolname)
|
|||
|
||||
-- Check if it can be dug by tool
|
||||
local tdef = minetest.registered_tools[toolname]
|
||||
if tdef then
|
||||
if tdef and tdef._mcl_diggroups then
|
||||
for g, gdef in pairs(tdef._mcl_diggroups) do
|
||||
if ndef.groups[g] then
|
||||
if ndef.groups[g] <= gdef.level then
|
||||
|
|
Loading…
Reference in a new issue