mirror of
https://github.com/D00Med/scifi_nodes.git
synced 2024-12-22 16:10:18 +01:00
Fixed warnings about maxlight, set to default.LIGHT_MAX
This commit is contained in:
parent
d3fb2befe5
commit
c2775191ce
10
init.lua
10
init.lua
@ -564,10 +564,10 @@ node.types = {
|
|||||||
{"monitorwall", "Wall monitors", "monitorwall"},
|
{"monitorwall", "Wall monitors", "monitorwall"},
|
||||||
{"screen3", "Wall monitor", "screen3"},
|
{"screen3", "Wall monitor", "screen3"},
|
||||||
{"doomlight", "Doom light", "doomlight", 12},
|
{"doomlight", "Doom light", "doomlight", 12},
|
||||||
{"bluwllight", "Blue wall light", "capsule3", 20},
|
{"bluwllight", "Blue wall light", "capsule3", default.LIGHT_MAX},
|
||||||
{"bluegrid", "Blue Grid", "bluegrid", 5},
|
{"bluegrid", "Blue Grid", "bluegrid", 5},
|
||||||
{"fan", "Fan", "fan"},
|
{"fan", "Fan", "fan"},
|
||||||
{"ppllght", "Purple wall light", "", 50},
|
{"ppllght", "Purple wall light", "", default.LIGHT_MAX},
|
||||||
{"pplwll", "Purple wall", "", 0},
|
{"pplwll", "Purple wall", "", 0},
|
||||||
{"pplwll2", "Purple wall2", "", 0},
|
{"pplwll2", "Purple wall2", "", 0},
|
||||||
{"pplwll3", "Purple wall3", "", 0},
|
{"pplwll3", "Purple wall3", "", 0},
|
||||||
@ -596,12 +596,12 @@ for _, row in ipairs(node.types) do
|
|||||||
end
|
end
|
||||||
|
|
||||||
node.plants = {
|
node.plants = {
|
||||||
{"flower1", "Glow Flower", 1,0, 50},
|
{"flower1", "Glow Flower", 1,0, default.LIGHT_MAX},
|
||||||
{"flower2", "Pink Flower", 1.5,0, 10},
|
{"flower2", "Pink Flower", 1.5,0, 10},
|
||||||
{"flower3", "Triffid", 2,5, 0},
|
{"flower3", "Triffid", 2,5, 0},
|
||||||
{"flower4", "Weeping flower", 1.5,0, 0},
|
{"flower4", "Weeping flower", 1.5,0, 0},
|
||||||
{"plant1", "Bulb Plant", 1,0, 0},
|
{"plant1", "Bulb Plant", 1,0, 0},
|
||||||
{"plant2", "Trap Plant", 1.5,0, 30},
|
{"plant2", "Trap Plant", 1.5,0, default.LIGHT_MAX},
|
||||||
{"plant3", "Blue Jelly Plant", 1.2,0, 10},
|
{"plant3", "Blue Jelly Plant", 1.2,0, 10},
|
||||||
{"plant4", "Green Jelly Plant", 1.2,0, 10},
|
{"plant4", "Green Jelly Plant", 1.2,0, 10},
|
||||||
{"plant5", "Fern Plant", 1.7,0, 0},
|
{"plant5", "Fern Plant", 1.7,0, 0},
|
||||||
@ -790,7 +790,7 @@ minetest.register_node("scifi_nodes:lightstp", {
|
|||||||
tiles = {
|
tiles = {
|
||||||
"scifi_nodes_lightstripe.png"
|
"scifi_nodes_lightstripe.png"
|
||||||
},
|
},
|
||||||
light_source = 14,
|
light_source = default.LIGHT_MAX,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
groups = {cracky=1}
|
groups = {cracky=1}
|
||||||
})
|
})
|
||||||
|
@ -53,8 +53,8 @@ scifi_nodes.register_slope("holes", "Holes", {"scifi_nodes_holes.png",}, 0)
|
|||||||
scifi_nodes.register_slope("pipe", "Pipe", {"scifi_nodes_pipe.png",}, 0)
|
scifi_nodes.register_slope("pipe", "Pipe", {"scifi_nodes_pipe.png",}, 0)
|
||||||
scifi_nodes.register_slope("stripes", "Stripes", {"scifi_nodes_stripes.png",}, 0)
|
scifi_nodes.register_slope("stripes", "Stripes", {"scifi_nodes_stripes.png",}, 0)
|
||||||
scifi_nodes.register_slope("screen", "Screen", {"scifi_nodes_screen3.png",}, 5)
|
scifi_nodes.register_slope("screen", "Screen", {"scifi_nodes_screen3.png",}, 5)
|
||||||
scifi_nodes.register_slope("lightstripe", "Lightstripe", {"scifi_nodes_lightstripe.png",}, 20)
|
scifi_nodes.register_slope("lightstripe", "Lightstripe", {"scifi_nodes_lightstripe.png",}, default.LIGH_MAX)
|
||||||
scifi_nodes.register_slope("blight2", "Blue Light 2", {"scifi_nodes_capsule3.png",}, 20)
|
scifi_nodes.register_slope("blight2", "Blue Light 2", {"scifi_nodes_capsule3.png",}, default.LIGH_MAX)
|
||||||
scifi_nodes.register_slope("wallpipe", "Alien Pipe", {"scifi_nodes_wallpipe.png",}, 0)
|
scifi_nodes.register_slope("wallpipe", "Alien Pipe", {"scifi_nodes_wallpipe.png",}, 0)
|
||||||
scifi_nodes.register_slope("alien", "Alien Wall", {"scifi_nodes_alnslp.png",}, 0)
|
scifi_nodes.register_slope("alien", "Alien Wall", {"scifi_nodes_alnslp.png",}, 0)
|
||||||
scifi_nodes.register_slope("purple", "Purple", {"scifi_nodes_purple.png",}, 0)
|
scifi_nodes.register_slope("purple", "Purple", {"scifi_nodes_purple.png",}, 0)
|
||||||
@ -137,10 +137,10 @@ node.types = {
|
|||||||
-- {"monitorwall", "Wall monitors", "monitorwall"},
|
-- {"monitorwall", "Wall monitors", "monitorwall"},
|
||||||
{"screen3", "Wall monitor", "screen3"},
|
{"screen3", "Wall monitor", "screen3"},
|
||||||
{"doomlight", "Doom light", "doomlight", 12},
|
{"doomlight", "Doom light", "doomlight", 12},
|
||||||
{"bluwllight", "Blue wall light", "capsule3", 20},
|
{"bluwllight", "Blue wall light", "capsule3", default.LIGH_MAX},
|
||||||
{"bluegrid", "Blue Grid", "bluegrid", 5},
|
{"bluegrid", "Blue Grid", "bluegrid", 5},
|
||||||
{"fan", "Fan", "fan"},
|
{"fan", "Fan", "fan"},
|
||||||
{"ppllght", "Purple wall light", "", 50},
|
{"ppllght", "Purple wall light", "", default.LIGH_MAX},
|
||||||
{"pplwll", "Purple wall", "", 0},
|
{"pplwll", "Purple wall", "", 0},
|
||||||
{"pplwll2", "Purple wall2", "", 0},
|
{"pplwll2", "Purple wall2", "", 0},
|
||||||
{"pplwll3", "Purple wall3", "", 0},
|
{"pplwll3", "Purple wall3", "", 0},
|
||||||
|
@ -301,7 +301,7 @@ minetest.register_node("scifi_nodes:gloshroom", {
|
|||||||
},
|
},
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
light_source = 50,
|
light_source = default.LIGHT_MAX,
|
||||||
walkable = false,
|
walkable = false,
|
||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
sunlight_propagates = false,
|
sunlight_propagates = false,
|
||||||
@ -444,7 +444,7 @@ minetest.register_node("scifi_nodes:lightbar", {
|
|||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
light_source = 25,
|
light_source = default.LIGHT_MAX,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -522,7 +522,7 @@ minetest.register_node("scifi_nodes:light_dynamic", {
|
|||||||
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
fixed = {-0.5, -0.5, -0.5, -0.45, 0.5, 0.5}
|
||||||
},
|
},
|
||||||
paramtype2 = "wallmounted",
|
paramtype2 = "wallmounted",
|
||||||
light_source = 25,
|
light_source = default.LIGHT_MAX,
|
||||||
groups = {cracky=1, oddly_breakable_by_hand=1},
|
groups = {cracky=1, oddly_breakable_by_hand=1},
|
||||||
sounds = default.node_sound_glass_defaults()
|
sounds = default.node_sound_glass_defaults()
|
||||||
})
|
})
|
||||||
@ -569,7 +569,7 @@ minetest.register_node("scifi_nodes:lightbars", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
light_source = 25,
|
light_source = default.LIGHT_MAX,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
fixed = {
|
fixed = {
|
||||||
@ -590,7 +590,7 @@ tiles = {{
|
|||||||
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 1.00},
|
||||||
}},
|
}},
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
light_source = 15,
|
light_source = default.LIGHT_MAX,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -610,7 +610,7 @@ tiles = {
|
|||||||
"scifi_nodes_orange.png",
|
"scifi_nodes_orange.png",
|
||||||
},
|
},
|
||||||
use_texture_alpha = true,
|
use_texture_alpha = true,
|
||||||
light_source = 20,
|
light_source = default.LIGHT_MAX,
|
||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
@ -1148,7 +1148,7 @@ minetest.register_node("scifi_nodes:glassscreen", {
|
|||||||
drawtype = "nodebox",
|
drawtype = "nodebox",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
paramtype2 = "facedir",
|
paramtype2 = "facedir",
|
||||||
light_source = 15,
|
light_source = default.LIGHT_MAX,
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
node_box = {
|
node_box = {
|
||||||
type = "fixed",
|
type = "fixed",
|
||||||
|
Loading…
Reference in New Issue
Block a user