From 6e81ab1f2716a8a6db40b759fb0c0d492200ebae Mon Sep 17 00:00:00 2001 From: tuedel Date: Wed, 9 Sep 2020 18:46:03 +0200 Subject: [PATCH] Update stairsplus modname for pavement_brick, fix aliases (#17) Change the stairsplus modname for pavement_brick from "castle" to "castle_masonry" Register aliases for all stairsplus shapes, not just stairs --- paving.lua | 5 +++-- stone_wall.lua | 6 +++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/paving.lua b/paving.lua index e3cfff6..8eb35aa 100644 --- a/paving.lua +++ b/paving.lua @@ -37,13 +37,14 @@ minetest.register_craft({ if minetest.get_modpath("moreblocks") then - stairsplus:register_all("castle", "pavement_brick", "castle_masonry:pavement_brick", { + stairsplus:register_all("castle_masonry", "pavement_brick", "castle_masonry:pavement_brick", { description = S("Pavement Brick"), tiles = {"castle_pavement_brick.png"}, groups = {cracky=2, not_in_creative_inventory=1}, sounds = default.node_sound_stone_defaults(), sunlight_propagates = true, }) + stairsplus:register_alias_all("castle", "pavement_brick", "castle_masonry", "pavement_brick") elseif minetest.get_modpath("stairs") then stairs.register_stair_and_slab("pavement_brick", "castle_masonry:pavement_brick", {cracky=2}, @@ -117,4 +118,4 @@ if not (mod_building_blocks or mod_streets) then recipe = "default:gravel", }) -end \ No newline at end of file +end diff --git a/stone_wall.lua b/stone_wall.lua index 1ed0306..ce4c924 100644 --- a/stone_wall.lua +++ b/stone_wall.lua @@ -102,8 +102,8 @@ if minetest.get_modpath("moreblocks") then sunlight_propagates = true, }) - stairsplus:register_stair_alias("castle", "stonewall", "castle_masonry", "stonewall") - stairsplus:register_stair_alias("castle", "rubble", "castle_masonry", "rubble") + stairsplus:register_alias_all("castle", "stonewall", "castle_masonry", "stonewall") + stairsplus:register_alias_all("castle", "rubble", "castle_masonry", "rubble") elseif minetest.get_modpath("stairs") then stairs.register_stair_and_slab("stonewall", "castle_masonry:stonewall", @@ -159,7 +159,7 @@ if minetest.get_modpath("moreblocks") then sunlight_propagates = true, }) - stairsplus:register_stair_alias("castle", "dungeon_stone", "castle_masonry", "dungeon_stone") + stairsplus:register_alias_all("castle", "dungeon_stone", "castle_masonry", "dungeon_stone") elseif minetest.get_modpath("stairs") then stairs.register_stair_and_slab("dungeon_stone", "castle_masonry:dungeon_stone",