mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-25 02:42:25 +01:00
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 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 New Issue
Block a user