1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-12-22 08:00:18 +01:00

register forcefield and wall node as stealthnode if available

This commit is contained in:
BuckarooBanzay 2023-06-23 16:56:45 +02:00
parent fd4a03dd8d
commit 5b9e18f278
4 changed files with 11 additions and 1 deletions

View File

@ -22,5 +22,6 @@ read_globals = {
"minetest",
"mesecon",
"unifieddyes",
"letters"
"letters",
"stealthnode"
}

View File

@ -36,4 +36,9 @@ dofile(MP.."/crafts.lua")
if minetest.get_modpath("letters") then
-- register letter nodes
dofile(MP.."/letters.lua")
end
if minetest.get_modpath("mesecons_stealthnode") then
-- register stealthnodes
dofile(MP.."/stealthnodes.lua")
end

View File

@ -13,4 +13,5 @@ basic_materials,
dye,
unifieddyes,
letters
mesecons_stealthnode
"""

3
stealthnodes.lua Normal file
View File

@ -0,0 +1,3 @@
stealthnode.register_stealthnode("scifi_nodes", "forcefield")
stealthnode.register_stealthnode("scifi_nodes", "wall")