mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
add advtrains platform registration for stripes
node
This commit is contained in:
parent
8967e0ea04
commit
e519d3c6e0
@ -15,6 +15,7 @@ read_globals = {
|
||||
"dump",
|
||||
|
||||
-- optional deps
|
||||
"advtrains",
|
||||
"default",
|
||||
"stairsplus",
|
||||
"xpanes",
|
||||
|
1
mod.conf
1
mod.conf
@ -1,6 +1,7 @@
|
||||
name = scifi_nodes
|
||||
description = Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets.
|
||||
optional_depends = """
|
||||
advtrains,
|
||||
default,
|
||||
xpanes,
|
||||
mesecons,
|
||||
|
@ -58,7 +58,8 @@
|
||||
},
|
||||
"stripes": {
|
||||
"description": "hazard stripes",
|
||||
"slat": true
|
||||
"slat": true,
|
||||
"advtrains_platform": true
|
||||
},
|
||||
"rust": {
|
||||
"description": "rusty metal"
|
||||
|
@ -1,6 +1,7 @@
|
||||
local has_unifieddyes_mod = minetest.get_modpath("unifieddyes")
|
||||
local has_moreblocks_mod = minetest.get_modpath("moreblocks")
|
||||
local has_slats_mod = minetest.get_modpath("slats")
|
||||
local has_advtrains_mod = minetest.get_modpath("advtrains")
|
||||
|
||||
--nodes
|
||||
|
||||
@ -661,6 +662,11 @@ for name, def in pairs(nodes) do
|
||||
})
|
||||
end
|
||||
|
||||
-- advtrains platform registration
|
||||
if has_advtrains_mod and def.advtrains_platform then
|
||||
advtrains.register_platform("scifi_nodes", "scifi_nodes:" .. name)
|
||||
end
|
||||
|
||||
if has_slats_mod and def.slat then
|
||||
slats.register_slat(
|
||||
name,
|
||||
|
Loading…
Reference in New Issue
Block a user