summaryrefslogtreecommitdiff
path: root/concretestairs
diff options
context:
space:
mode:
authorVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-03-11 09:39:20 -0400
committerVanessa Dannenberg <vanessa.e.dannenberg@gmail.com>2019-03-11 10:22:46 -0400
commitc2374dc16cfdd5b7eeeb59affbbd2d9652825e11 (patch)
tree6cd4e9ce7fa4d9d00a69091dac9b489effb0ddea /concretestairs
parent12553287309b053d59a878287c9a29e1540c070a (diff)
downloadroads-c2374dc16cfdd5b7eeeb59affbbd2d9652825e11.tar
roads-c2374dc16cfdd5b7eeeb59affbbd2d9652825e11.tar.gz
roads-c2374dc16cfdd5b7eeeb59affbbd2d9652825e11.tar.bz2
roads-c2374dc16cfdd5b7eeeb59affbbd2d9652825e11.tar.xz
roads-c2374dc16cfdd5b7eeeb59affbbd2d9652825e11.zip
moreblocks no longer exports register_stair_slab_panel_micro
use stairsplus:register_all instead also fixed a few places to detect moreblocks more appropriately
Diffstat (limited to 'concretestairs')
-rw-r--r--concretestairs/init.lua15
1 files changed, 11 insertions, 4 deletions
diff --git a/concretestairs/init.lua b/concretestairs/init.lua
index 0a030be..09bbdb7 100644
--- a/concretestairs/init.lua
+++ b/concretestairs/init.lua
@@ -1,10 +1,17 @@
--[[
StreetsMod: Concrete stairs (compatible to circular saw)
]]
-if rawget(_G, "register_stair_slab_panel_micro")
-and type(register_stair_slab_panel_micro) == "function" then
- register_stair_slab_panel_micro("streets", "concrete", "basic_materials:concrete_block", {cracky=2}, {"basic_materials_concrete_block.png"}, "Concrete", "concrete", nil)
- table.insert(circular_saw.known_stairs,"basic_materials:concrete_block")
+if minetest.get_modpath("moreblocks") then
+ stairsplus:register_all(
+ "streets",
+ "concrete",
+ "basic_materials:concrete_block",
+ {
+ groups = {not_in_creative_inventory=1, cracky=2},
+ tiles = {"basic_materials_concrete_block.png"},
+ description = "Concrete"
+ }
+ )
minetest.register_alias("stairs:stair_concrete","streets:stair_concrete")
else
minetest.register_alias("stairs:stair_concrete","prefab:concrete_stair")