Drop hard requirement of xcompat
This commit is contained in:
parent
375accf19d
commit
ec4ea8b4aa
75
craft.lua
75
craft.lua
@ -18,6 +18,45 @@
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
]]
|
||||
|
||||
-- Switch between modern station blocks
|
||||
minetest.register_craft({
|
||||
type = 'shapeless',
|
||||
output = 'trainblocks:station_block_modern',
|
||||
recipe = { 'trainblocks:station_block' }
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = 'shapeless',
|
||||
recipe = { 'trainblocks:station_block_modern' },
|
||||
output = 'trainblocks:station_block'
|
||||
})
|
||||
|
||||
-- Switch betwen modern station direction signs and older style
|
||||
-- from https://github.com/Montandalar/trainblocks/commit/4f4f6004e1e5067969fcc0efd8785a55ef36a6e2
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'trainblocks:stationsignR_modern',
|
||||
recipe = { 'trainblocks:stationsignR' }
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'trainblocks:stationsignL_modern',
|
||||
recipe = { 'trainblocks:stationsignL' }
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
recipe = { 'trainblocks:stationsignR_modern' },
|
||||
output = 'trainblocks:stationsignR'
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
recipe = { 'trainblocks:stationsignL_modern' },
|
||||
output = 'trainblocks:stationsignL'
|
||||
})
|
||||
|
||||
if not minetest.global_exists("xcompat") then return end
|
||||
|
||||
local materials = xcompat.materials
|
||||
|
||||
minetest.register_craft({
|
||||
@ -106,30 +145,6 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
-- Switch betwen modern station direction signs and older style
|
||||
-- from https://github.com/Montandalar/trainblocks/commit/4f4f6004e1e5067969fcc0efd8785a55ef36a6e2
|
||||
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'trainblocks:stationsignR_modern',
|
||||
recipe = { 'trainblocks:stationsignR' }
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
output = 'trainblocks:stationsignL_modern',
|
||||
recipe = { 'trainblocks:stationsignL' }
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
recipe = { 'trainblocks:stationsignR_modern' },
|
||||
output = 'trainblocks:stationsignR'
|
||||
})
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
recipe = { 'trainblocks:stationsignL_modern' },
|
||||
output = 'trainblocks:stationsignL'
|
||||
})
|
||||
|
||||
-- Platform signs 0-10
|
||||
-- from https://github.com/Montandalar/trainblocks/commit/f5e86f18f437ba3cb3337369d0b009e94dd5a8f5
|
||||
|
||||
@ -241,18 +256,6 @@ minetest.register_craft({
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = 'shapeless',
|
||||
output = 'trainblocks:station_block_modern',
|
||||
recipe = { 'trainblocks:station_block' }
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
type = 'shapeless',
|
||||
recipe = { 'trainblocks:station_block_modern' },
|
||||
output = 'trainblocks:station_block'
|
||||
})
|
||||
|
||||
-- Mountain Railway
|
||||
|
||||
minetest.register_craft({
|
||||
|
Loading…
x
Reference in New Issue
Block a user