Use moreblocks as an optional dependency.

This commit is contained in:
1Nick1Name 2015-07-29 19:59:32 +02:00 committed by Vanessa Ezekowitz
parent e2ca7166f9
commit cfd788358c
2 changed files with 88 additions and 85 deletions

View File

@ -1,6 +1,5 @@
default
moreblocks
technic_worldgen
concrete
intllib?
moreblocks?

View File

@ -3,6 +3,8 @@
-- Boilerplate to support localized strings if intllib mod is installed.
local S = rawget(_G, "intllib") and intllib.Getter() or function(s) return s end
if minetest.get_modpath("moreblocks") then
-- register stairsplus/circular_saw nodes
-- we skip blast resistant concrete and uranium intentionally
-- chrome seems to be too hard of a metal to be actually sawable
@ -97,3 +99,5 @@ register_technic_stairs_alias("stairsplus", "concrete", "technic", "concrete")
register_technic_stairs_alias("stairsplus", "marble", "technic", "marble")
register_technic_stairs_alias("stairsplus", "granite", "technic", "granite")
register_technic_stairs_alias("stairsplus", "marble_bricks", "technic", "marble_bricks")
end