mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 20:11:06 +01:00
Protection check
This commit is contained in:
parent
9b9271e5df
commit
77a6ac1ef3
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ minetest.register_node(SCAFFOLDING_NAME, {
|
|||
local wdir = minetest.dir_to_wallmounted(dir)
|
||||
local anode = minetest.get_node(pointed.above).name
|
||||
if wdir == 1 then
|
||||
if anode == "air" or minetest.registered_nodes[anode].buildable_to then
|
||||
if (anode == "air" or minetest.registered_nodes[anode].buildable_to) and not mcl_bamboo.is_protected(pointed.above, placer) then
|
||||
minetest.set_node(pointed.above, { name = SCAFFOLDING_NAME, param2 = 0 })
|
||||
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||
itemstack:take_item(1)
|
||||
|
|
Loading…
Reference in a new issue