forked from VoxeLibre/VoxeLibre
Patch mcl_ocean for pickblock (again)
This commit is contained in:
parent
9ac416ee3e
commit
f8931ec5e2
|
@ -559,7 +559,7 @@ kelp.surface_deftemplate = {
|
||||||
--_mcl_falling_node_alternative = is_falling and nodename or nil,
|
--_mcl_falling_node_alternative = is_falling and nodename or nil,
|
||||||
_mcl_hardness = 0,
|
_mcl_hardness = 0,
|
||||||
_mcl_blast_resistance = 0,
|
_mcl_blast_resistance = 0,
|
||||||
--_vl_pickblock = nodename,
|
_vl_pickblock = "mcl_ocean:kelp",
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Commented properties are the ones obtained using register_kelp_surface.
|
-- Commented properties are the ones obtained using register_kelp_surface.
|
||||||
|
@ -610,7 +610,6 @@ function kelp.register_kelp_surface(surface, surface_deftemplate, surface_docs)
|
||||||
surface_deftemplate.node_dig_prediction = surface_deftemplate.node_dig_prediction or nodename
|
surface_deftemplate.node_dig_prediction = surface_deftemplate.node_dig_prediction or nodename
|
||||||
surface_deftemplate.groups.falling_node = surface_deftemplate.groups.falling_node or falling_node
|
surface_deftemplate.groups.falling_node = surface_deftemplate.groups.falling_node or falling_node
|
||||||
surface_deftemplate._mcl_falling_node_alternative = surface_deftemplate._mcl_falling_node_alternative or (falling_node and nodename or nil)
|
surface_deftemplate._mcl_falling_node_alternative = surface_deftemplate._mcl_falling_node_alternative or (falling_node and nodename or nil)
|
||||||
surface_deftemplate._vl_pickblock = surface_deftemplate._vl_pickblock or nodename
|
|
||||||
|
|
||||||
minetest.register_node(surfacename, surface_deftemplate)
|
minetest.register_node(surfacename, surface_deftemplate)
|
||||||
end
|
end
|
||||||
|
|
|
@ -140,7 +140,7 @@ for s=1, #surfaces do
|
||||||
_mcl_shears_drop = { "mcl_ocean:seagrass" },
|
_mcl_shears_drop = { "mcl_ocean:seagrass" },
|
||||||
_mcl_hardness = 0,
|
_mcl_hardness = 0,
|
||||||
_mcl_blast_resistance = 0,
|
_mcl_blast_resistance = 0,
|
||||||
_vl_pickblock = surfaces[s][2],
|
_vl_pickblock = "mcl_ocean:seagrass",
|
||||||
})
|
})
|
||||||
if mod_doc and surfaces[s][1] ~= "dirt" then
|
if mod_doc and surfaces[s][1] ~= "dirt" then
|
||||||
doc.add_entry_alias("nodes", "mcl_ocean:seagrass_dirt", "nodes", "mcl_ocean:seagrass_"..surfaces[s][1])
|
doc.add_entry_alias("nodes", "mcl_ocean:seagrass_dirt", "nodes", "mcl_ocean:seagrass_"..surfaces[s][1])
|
||||||
|
|
Loading…
Reference in New Issue