Fix dig times of wool and cobweb

This commit is contained in:
Wuzzy 2017-02-27 19:38:48 +01:00
parent 6b3db0ae72
commit c80433aaf4
3 changed files with 9 additions and 12 deletions

View file

@ -125,18 +125,15 @@ local overwrite = function()
if ar == nil then
ar = 0
end
if minigroup == "handy" then
if (minigroup == "handy")
or
(ndef.groups.shearsy_wool and minigroup == "shearsy_wool" and ndef.groups.wool)
or
(ndef.groups.swordy_cobweb and minigroup == "swordy_cobweb" and nname == "mcl_core:cobweb")
or
(ndef.groups[minigroup] and minigroup ~= "swordy_cobweb" and minigroup ~= "shearsy_wool") then
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, ar, 1)
groups_changed = true
elseif minigroup ~= "swordy_cobweb" and minigroup ~= "shearsy_wool" then
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, ar, 1)
groups_changed = true
end
end
end
end