mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 08:29:34 +01:00
Add lantern functions for adding nodes to allowed placement list
This commit is contained in:
parent
f02afca62c
commit
257e5f993b
1 changed files with 8 additions and 0 deletions
|
@ -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 a new issue