mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 10:52:25 +01:00
Add lantern functions for adding nodes to allowed placement list
This commit is contained in:
parent
f02afca62c
commit
257e5f993b
@ -22,6 +22,10 @@ local allowed_non_solid_nodes_floor = {
|
||||
"mcl_lanterns:chain"
|
||||
}
|
||||
|
||||
function mcl_lanterns.add_allowed_non_solid_nodes_floor (node_name)
|
||||
table.insert (allowed_non_solid_nodes_floor, node_name)
|
||||
end
|
||||
|
||||
local allowed_non_solid_groups_floor = {"anvil", "wall", "glass", "fence", "fence_gate", "pane"}
|
||||
|
||||
local allowed_non_solid_nodes_ceiling = {
|
||||
@ -36,6 +40,10 @@ local allowed_non_solid_nodes_ceiling = {
|
||||
"mcl_lanterns:chain"
|
||||
}
|
||||
|
||||
function mcl_lanterns.add_allowed_non_solid_nodes_ceiling (node_name)
|
||||
table.insert (allowed_non_solid_nodes_ceiling, node_name)
|
||||
end
|
||||
|
||||
local allowed_non_solid_groups_ceiling = {"anvil", "wall", "glass", "fence", "fence_gate", "soil", "pane", "end_portal_frame"}
|
||||
|
||||
local function check_placement(node, wdir)
|
||||
|
Loading…
Reference in New Issue
Block a user