Add comments explaining new lantern functions
This commit is contained in:
parent
257e5f993b
commit
47b6e54dad
|
@ -21,7 +21,7 @@ local allowed_non_solid_nodes_floor = {
|
||||||
"mcl_portals:end_portal_frame_eye",
|
"mcl_portals:end_portal_frame_eye",
|
||||||
"mcl_lanterns:chain"
|
"mcl_lanterns:chain"
|
||||||
}
|
}
|
||||||
|
-- The function below allows nodes that call it to be included in the 'allowed floor placement' list above. This lets lanterns be placed on top of said nodes. Most useful for modded in nodes.
|
||||||
function mcl_lanterns.add_allowed_non_solid_nodes_floor (node_name)
|
function mcl_lanterns.add_allowed_non_solid_nodes_floor (node_name)
|
||||||
table.insert (allowed_non_solid_nodes_floor, node_name)
|
table.insert (allowed_non_solid_nodes_floor, node_name)
|
||||||
end
|
end
|
||||||
|
@ -39,7 +39,7 @@ local allowed_non_solid_nodes_ceiling = {
|
||||||
"mcl_core:grass_path",
|
"mcl_core:grass_path",
|
||||||
"mcl_lanterns:chain"
|
"mcl_lanterns:chain"
|
||||||
}
|
}
|
||||||
|
-- The function below allows nodes that call it to be included in the 'allowed ceiling placement' list above. This lets lanterns be placed below said nodes. Most useful for modded in nodes.
|
||||||
function mcl_lanterns.add_allowed_non_solid_nodes_ceiling (node_name)
|
function mcl_lanterns.add_allowed_non_solid_nodes_ceiling (node_name)
|
||||||
table.insert (allowed_non_solid_nodes_ceiling, node_name)
|
table.insert (allowed_non_solid_nodes_ceiling, node_name)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue