Fix handy digging times

This commit is contained in:
Wuzzy 2017-02-27 00:35:13 +01:00
parent a52f853853
commit 7dd5afe28f

View File

@ -126,15 +126,15 @@ local overwrite = function()
ar = 0
end
if minigroup == "handy" then
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, 1, ar)
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, ar, 1)
groups_changed = true
elseif ndef.groups[minigroup] then
if (minigroup == "shearsy_wool" and ndef.groups.wool) or
(minigroup == "swordy_cobweb" and nname == "mcl_core:cobweb") then
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, 1, ar)
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, ar, 1)
groups_changed = true
elseif minigroup ~= "swordy_cobweb" and minigroup ~= "shearsy_wool" then
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, 1, ar)
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, ar, 1)
groups_changed = true
end
end