mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-24 19:41:08 +01:00
Patch mcl_stairs to work with pickblock
This commit is contained in:
parent
3cac4f3037
commit
0af8b0ed59
2 changed files with 3 additions and 0 deletions
|
@ -313,6 +313,7 @@ function mcl_stairs.register_slab(subname, recipeitem, groups, images, descripti
|
||||||
topdef._doc_items_usagehelp = nil
|
topdef._doc_items_usagehelp = nil
|
||||||
topdef.drop = lower_slab
|
topdef.drop = lower_slab
|
||||||
topdef._mcl_other_slab_half = lower_slab
|
topdef._mcl_other_slab_half = lower_slab
|
||||||
|
topdef._vl_pickblock = lower_slab
|
||||||
function topdef.on_rotate(pos, node, user, mode, param2)
|
function topdef.on_rotate(pos, node, user, mode, param2)
|
||||||
-- Flip slab
|
-- Flip slab
|
||||||
if mode == screwdriver.ROTATE_AXIS then
|
if mode == screwdriver.ROTATE_AXIS then
|
||||||
|
|
|
@ -665,6 +665,7 @@ function mcl_stairs.cornerstair.add(name, stairtiles)
|
||||||
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,
|
_mcl_hardness = node_def._mcl_hardness,
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
|
_vl_pickblock = name,
|
||||||
})
|
})
|
||||||
minetest.register_node(":"..name.."_inner", {
|
minetest.register_node(":"..name.."_inner", {
|
||||||
description = node_def.description,
|
description = node_def.description,
|
||||||
|
@ -689,6 +690,7 @@ function mcl_stairs.cornerstair.add(name, stairtiles)
|
||||||
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,
|
_mcl_hardness = node_def._mcl_hardness,
|
||||||
on_rotate = false,
|
on_rotate = false,
|
||||||
|
_vl_pickblock = name,
|
||||||
})
|
})
|
||||||
|
|
||||||
if minetest.get_modpath("doc") then
|
if minetest.get_modpath("doc") then
|
||||||
|
|
Loading…
Reference in a new issue