Fix dig times of wool and cobweb

master
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

View File

@ -1662,7 +1662,7 @@ minetest.register_node("mcl_core:cobweb", {
liquid_renewable = false,
liquid_range = 0,
walkable = false,
groups = {swordy=1,shearsy=1, deco_block=1},
groups = {swordy_cobweb=1,shearsy=1, deco_block=1},
drop = "mcl_mobitems:string",
_mcl_blast_resistance = 20,
_mcl_hardness = 4,

View File

@ -38,7 +38,7 @@ for _, row in ipairs(wool.dyes) do
stack_max = 64,
is_ground_content = false,
tiles = {"wool_"..texture..".png"},
groups = {handy=1,shearsy=1, flammable=1,wool=1,building_block=1},
groups = {handy=1,shearsy_wool=1, flammable=1,wool=1,building_block=1},
sounds = mcl_sounds.node_sound_defaults(),
_mcl_hardness = 0.8,
_mcl_blast_resistance = 4,