summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Danscheid <Christian_D_97@gmx.de>2013-08-15 20:11:01 +0200
committerChristian Danscheid <Christian_D_97@gmx.de>2013-08-15 20:11:01 +0200
commit6db1a35ef12f6a622e0b21d89f3516e9c3262945 (patch)
treef6a12bcb423b82ed48062bb8260cb4f68e1e13af
parenta56833380523d900dad8cdc9c6361182ea8b0f9e (diff)
downloadroads-6db1a35ef12f6a622e0b21d89f3516e9c3262945.tar
roads-6db1a35ef12f6a622e0b21d89f3516e9c3262945.tar.gz
roads-6db1a35ef12f6a622e0b21d89f3516e9c3262945.tar.bz2
roads-6db1a35ef12f6a622e0b21d89f3516e9c3262945.tar.xz
roads-6db1a35ef12f6a622e0b21d89f3516e9c3262945.zip
Added support for circular_saw (concrete)
-rw-r--r--concretestairs/depends.txt3
-rw-r--r--concretestairs/init.lua7
-rw-r--r--streetsmod/init.lua8
3 files changed, 10 insertions, 8 deletions
diff --git a/concretestairs/depends.txt b/concretestairs/depends.txt
index b210b30..ad569e2 100644
--- a/concretestairs/depends.txt
+++ b/concretestairs/depends.txt
@@ -1,3 +1,4 @@
default
streetsmod
-stairs? \ No newline at end of file
+stairs?
+moreblocks? \ No newline at end of file
diff --git a/concretestairs/init.lua b/concretestairs/init.lua
index 44126a5..eec6831 100644
--- a/concretestairs/init.lua
+++ b/concretestairs/init.lua
@@ -1,8 +1,9 @@
--[[
- StreetsMod: Concrete stairs (not compatible to circular_saw
+ StreetsMod: Concrete stairs (compatible to circular saw)
]]
-if streets.extendedBy.stairs == true and streets.extendedBy.prefab == false then
- stairs.register_stair_and_slab("concrete", "streets:concrete", {cracky = 2, level = 2}, {"streets_concrete.png"}, "Concrete stair", "Concrete slab", nil)
+if streets.extendedBy.moreblocks == true and streets.extendedBy.prefab == false then
+ register_stair_slab_panel_micro("streets", "concrete", "streets:concrete", {cracky=2}, {"streets_concrete.png"}, "Concrete", "", nil)
+ table.insert(circular_saw.known_stairs,"streets:concrete")
else
minetest.register_alias("stairs:stair_concrete","prefab:concrete_stair")
minetest.register_alias("stairs:slab_concrete","prefab:concrete_slab")
diff --git a/streetsmod/init.lua b/streetsmod/init.lua
index aeb2784..9e4e30b 100644
--- a/streetsmod/init.lua
+++ b/streetsmod/init.lua
@@ -29,11 +29,11 @@
streets.extendedBy.technic = false
end
if minetest.get_modpath("stairs") then
- print("'Stairs' is installed \n\t => There will be stairs and slabs'")
- streets.extendedBy.stairs = true
+ print("'Moreblocks' is installed \n\t => There will be stairs and slabs'")
+ streets.extendedBy.moreblocks = true
else
- print("'Stairs' not installed \n\t => There won't be stairs and slabs'")
- streets.extendedBy.stairs = false
+ print("'Moreblocks' not installed \n\t => There won't be stairs and slabs'")
+ streets.extendedBy.moreblocks = false
end
if minetest.get_modpath("bucket") then
print("'Bucket' is installed \n\t => All signs are available")