1
0
Fork 0

Add comments explaining new lantern functions

This commit is contained in:
SmokeyDope 2023-03-23 19:12:18 +00:00 committed by Gitea
parent 257e5f993b
commit 47b6e54dad
1 changed files with 2 additions and 2 deletions

View File

@ -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