1
0
mirror of https://github.com/D00Med/scifi_nodes.git synced 2024-12-22 16:10: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", "minetest",
"mesecon", "mesecon",
"unifieddyes", "unifieddyes",
"letters" "letters",
"stealthnode"
} }

View File

@ -37,3 +37,8 @@ if minetest.get_modpath("letters") then
-- register letter nodes -- register letter nodes
dofile(MP.."/letters.lua") dofile(MP.."/letters.lua")
end end
if minetest.get_modpath("mesecons_stealthnode") then
-- register stealthnodes
dofile(MP.."/stealthnodes.lua")
end

View File

@ -13,4 +13,5 @@ basic_materials,
dye, dye,
unifieddyes, unifieddyes,
letters 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")