Use moreblocks as an optional dependency.

This commit is contained in:
1Nick1Name 2015-07-29 19:59:32 +02:00
parent 32d776293b
commit 543ca14ecc
2 changed files with 88 additions and 85 deletions

View File

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

View File

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