mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-12-23 16:39:33 +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"
|
"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_groups_floor = {"anvil", "wall", "glass", "fence", "fence_gate", "pane"}
|
||||||
|
|
||||||
local allowed_non_solid_nodes_ceiling = {
|
local allowed_non_solid_nodes_ceiling = {
|
||||||
|
@ -36,6 +40,10 @@ local allowed_non_solid_nodes_ceiling = {
|
||||||
"mcl_lanterns:chain"
|
"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 allowed_non_solid_groups_ceiling = {"anvil", "wall", "glass", "fence", "fence_gate", "soil", "pane", "end_portal_frame"}
|
||||||
|
|
||||||
local function check_placement(node, wdir)
|
local function check_placement(node, wdir)
|
||||||
|
|
Loading…
Reference in a new issue