forked from VoxeLibre/VoxeLibre
Protection check
This commit is contained in:
parent
9b9271e5df
commit
77a6ac1ef3
|
@ -318,7 +318,7 @@ minetest.register_node(SCAFFOLDING_NAME, {
|
||||||
local wdir = minetest.dir_to_wallmounted(dir)
|
local wdir = minetest.dir_to_wallmounted(dir)
|
||||||
local anode = minetest.get_node(pointed.above).name
|
local anode = minetest.get_node(pointed.above).name
|
||||||
if wdir == 1 then
|
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 })
|
minetest.set_node(pointed.above, { name = SCAFFOLDING_NAME, param2 = 0 })
|
||||||
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
if not minetest.is_creative_enabled(placer:get_player_name()) then
|
||||||
itemstack:take_item(1)
|
itemstack:take_item(1)
|
||||||
|
|
Loading…
Reference in New Issue