Patch mcl_ocean for pickblock (again)

This commit is contained in:
Mikita Wiśniewski 2024-08-01 09:23:51 +07:00
parent 9ac416ee3e
commit f8931ec5e2
2 changed files with 2 additions and 3 deletions

View file

@ -559,7 +559,7 @@ kelp.surface_deftemplate = {
--_mcl_falling_node_alternative = is_falling and nodename or nil,
_mcl_hardness = 0,
_mcl_blast_resistance = 0,
--_vl_pickblock = nodename,
_vl_pickblock = "mcl_ocean:kelp",
}
-- 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.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._vl_pickblock = surface_deftemplate._vl_pickblock or nodename
minetest.register_node(surfacename, surface_deftemplate)
end

View file

@ -140,7 +140,7 @@ for s=1, #surfaces do
_mcl_shears_drop = { "mcl_ocean:seagrass" },
_mcl_hardness = 0,
_mcl_blast_resistance = 0,
_vl_pickblock = surfaces[s][2],
_vl_pickblock = "mcl_ocean:seagrass",
})
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])