Add hardness support for stairs and slabs

This commit is contained in:
Wuzzy 2017-02-27 18:17:18 +01:00
parent 051799bb3d
commit ed882cd70b
2 changed files with 120 additions and 65 deletions

View file

@ -614,7 +614,8 @@ function mcstair.add(name, stairtiles)
},
drop = drop,
stairs = {name, name.."_outer", name.."_inner"},
after_dig_node = function(pos, oldnode) after_dig_node(pos, oldnode) end
after_dig_node = function(pos, oldnode) after_dig_node(pos, oldnode) end,
_mcl_hardness = node_def._mcl_hardness,
})
minetest.register_node(":"..name.."_inner", {
description = node_def.description,
@ -636,7 +637,8 @@ function mcstair.add(name, stairtiles)
},
drop = drop,
stairs = {name, name.."_outer", name.."_inner"},
after_dig_node = function(pos, oldnode) after_dig_node(pos, oldnode) end
after_dig_node = function(pos, oldnode) after_dig_node(pos, oldnode) end,
_mcl_hardness = node_def._mcl_hardness,
})
end