From 0af8b0ed5979398915edc2c82ab7d7b48d8c9a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mikita=20Wi=C5=9Bniewski?= Date: Wed, 31 Jul 2024 21:08:52 +0700 Subject: [PATCH] Patch mcl_stairs to work with pickblock --- mods/ITEMS/mcl_stairs/api.lua | 1 + mods/ITEMS/mcl_stairs/cornerstair.lua | 2 ++ 2 files changed, 3 insertions(+) diff --git a/mods/ITEMS/mcl_stairs/api.lua b/mods/ITEMS/mcl_stairs/api.lua index 390461c6c..0d967133b 100644 --- a/mods/ITEMS/mcl_stairs/api.lua +++ b/mods/ITEMS/mcl_stairs/api.lua @@ -313,6 +313,7 @@ function mcl_stairs.register_slab(subname, recipeitem, groups, images, descripti topdef._doc_items_usagehelp = nil topdef.drop = lower_slab topdef._mcl_other_slab_half = lower_slab + topdef._vl_pickblock = lower_slab function topdef.on_rotate(pos, node, user, mode, param2) -- Flip slab if mode == screwdriver.ROTATE_AXIS then diff --git a/mods/ITEMS/mcl_stairs/cornerstair.lua b/mods/ITEMS/mcl_stairs/cornerstair.lua index ae3eb4ea3..5d97f6154 100644 --- a/mods/ITEMS/mcl_stairs/cornerstair.lua +++ b/mods/ITEMS/mcl_stairs/cornerstair.lua @@ -665,6 +665,7 @@ function mcl_stairs.cornerstair.add(name, stairtiles) after_dig_node = function(pos, oldnode) after_dig_node(pos, oldnode) end, _mcl_hardness = node_def._mcl_hardness, on_rotate = false, + _vl_pickblock = name, }) minetest.register_node(":"..name.."_inner", { 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, _mcl_hardness = node_def._mcl_hardness, on_rotate = false, + _vl_pickblock = name, }) if minetest.get_modpath("doc") then