forked from MineClone5/MineClone5
Fix dig times of wool and cobweb
This commit is contained in:
parent
6b3db0ae72
commit
c80433aaf4
|
@ -125,18 +125,15 @@ local overwrite = function()
|
||||||
if ar == nil then
|
if ar == nil then
|
||||||
ar = 0
|
ar = 0
|
||||||
end
|
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)
|
newgroups = calculate_group(hardness, minigroup, diggroup, newgroups, ar, 1)
|
||||||
groups_changed = true
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1662,7 +1662,7 @@ minetest.register_node("mcl_core:cobweb", {
|
||||||
liquid_renewable = false,
|
liquid_renewable = false,
|
||||||
liquid_range = 0,
|
liquid_range = 0,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
groups = {swordy=1,shearsy=1, deco_block=1},
|
groups = {swordy_cobweb=1,shearsy=1, deco_block=1},
|
||||||
drop = "mcl_mobitems:string",
|
drop = "mcl_mobitems:string",
|
||||||
_mcl_blast_resistance = 20,
|
_mcl_blast_resistance = 20,
|
||||||
_mcl_hardness = 4,
|
_mcl_hardness = 4,
|
||||||
|
|
|
@ -38,7 +38,7 @@ for _, row in ipairs(wool.dyes) do
|
||||||
stack_max = 64,
|
stack_max = 64,
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
tiles = {"wool_"..texture..".png"},
|
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(),
|
sounds = mcl_sounds.node_sound_defaults(),
|
||||||
_mcl_hardness = 0.8,
|
_mcl_hardness = 0.8,
|
||||||
_mcl_blast_resistance = 4,
|
_mcl_blast_resistance = 4,
|
||||||
|
|
Loading…
Reference in New Issue