This commit is contained in:
HybridDog 2015-02-21 14:46:49 +01:00
parent 94f199a966
commit 4a583b811b
2 changed files with 5 additions and 3 deletions

View File

@ -1,7 +1,8 @@
--[[
StreetsMod: Asphalt stairs
]]
if type(register_stair_slab_panel_micro) ~= "function" then return end
if not rawget(_G, "register_stair_slab_panel_micro")
or type(register_stair_slab_panel_micro) ~= "function" then return end
-- Asphalt
register_stair_slab_panel_micro("streets", "asphalt", "streets:asphalt", {cracky=3}, {"streets_asphalt.png"}, "Asphalt", "asphalt", nil)
minetest.register_alias("streets:asphalt_stair","stairs:stair_asphalt")
@ -224,4 +225,4 @@ if type(register_stair_slab_panel_micro) ~= "function" then return end
type = "shapeless",
output = "streets:asphalt_side_l",
recipe = {"streets:asphalt_side_r"}
})
})

View File

@ -1,7 +1,8 @@
--[[
StreetsMod: Concrete stairs (compatible to circular saw)
]]
if type(register_stair_slab_panel_micro) == "function" and streets.extendedBy.prefab == false then
if rawget(_G, "register_stair_slab_panel_micro")
and type(register_stair_slab_panel_micro) == "function" and streets.extendedBy.prefab == false then
register_stair_slab_panel_micro("streets", "concrete", "streets:concrete", {cracky=2}, {"streets_concrete.png"}, "Concrete", "concrete", nil)
table.insert(circular_saw.known_stairs,"streets:concrete")
minetest.register_alias("stairs:stair_concrete","streets:stair_concrete")