1
0
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:
BuckarooBanzay 2024-09-15 19:42:47 +02:00
parent 8967e0ea04
commit e519d3c6e0
4 changed files with 10 additions and 1 deletions

View File

@ -15,6 +15,7 @@ read_globals = {
"dump", "dump",
-- optional deps -- optional deps
"advtrains",
"default", "default",
"stairsplus", "stairsplus",
"xpanes", "xpanes",

View File

@ -1,6 +1,7 @@
name = scifi_nodes name = scifi_nodes
description = Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets. description = Minetest mod that adds scifi themed blocks, doors, materials, plants and other assets.
optional_depends = """ optional_depends = """
advtrains,
default, default,
xpanes, xpanes,
mesecons, mesecons,

View File

@ -58,7 +58,8 @@
}, },
"stripes": { "stripes": {
"description": "hazard stripes", "description": "hazard stripes",
"slat": true "slat": true,
"advtrains_platform": true
}, },
"rust": { "rust": {
"description": "rusty metal" "description": "rusty metal"

View File

@ -1,6 +1,7 @@
local has_unifieddyes_mod = minetest.get_modpath("unifieddyes") local has_unifieddyes_mod = minetest.get_modpath("unifieddyes")
local has_moreblocks_mod = minetest.get_modpath("moreblocks") local has_moreblocks_mod = minetest.get_modpath("moreblocks")
local has_slats_mod = minetest.get_modpath("slats") local has_slats_mod = minetest.get_modpath("slats")
local has_advtrains_mod = minetest.get_modpath("advtrains")
--nodes --nodes
@ -661,6 +662,11 @@ for name, def in pairs(nodes) do
}) })
end 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 if has_slats_mod and def.slat then
slats.register_slat( slats.register_slat(
name, name,