From 47b6e54dad89828425c9ea5d4747efcfb13afbc5 Mon Sep 17 00:00:00 2001 From: SmokeyDope Date: Thu, 23 Mar 2023 19:12:18 +0000 Subject: [PATCH] Add comments explaining new lantern functions --- mods/ITEMS/mcl_lanterns/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/ITEMS/mcl_lanterns/init.lua b/mods/ITEMS/mcl_lanterns/init.lua index ce741f463..5be325e48 100644 --- a/mods/ITEMS/mcl_lanterns/init.lua +++ b/mods/ITEMS/mcl_lanterns/init.lua @@ -21,7 +21,7 @@ local allowed_non_solid_nodes_floor = { "mcl_portals:end_portal_frame_eye", "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) table.insert (allowed_non_solid_nodes_floor, node_name) end @@ -39,7 +39,7 @@ local allowed_non_solid_nodes_ceiling = { "mcl_core:grass_path", "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) table.insert (allowed_non_solid_nodes_ceiling, node_name) end