1
0
Fork 0

Protection check

patch_skins
José Douglas da Silva Souza 2024-01-23 20:46:15 +00:00
parent 9b9271e5df
commit 77a6ac1ef3
1 changed files with 1 additions and 1 deletions

View File

@ -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)