mirror of
https://github.com/mt-mods/homedecor_modpack.git
synced 2024-12-23 08:20:21 +01:00
fix wrong check for protection on node placement
This commit is contained in:
parent
9cfc7a9411
commit
d4f7de4640
@ -144,11 +144,6 @@ minetest.register_node(":default:sign_wall", {
|
|||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
return itemstack
|
return itemstack
|
||||||
elseif wdir == 1 then
|
elseif wdir == 1 then
|
||||||
local def = minetest.registered_nodes[minetest.env:get_node(pointed_thing.above).name]
|
|
||||||
if homedecor_node_is_owned(pointed_thing.above, placer)
|
|
||||||
or (not def.buildable_to) then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
minetest.env:add_node(above, {name = "signs:sign_yard", param2 = fdir})
|
minetest.env:add_node(above, {name = "signs:sign_yard", param2 = fdir})
|
||||||
sign_info = signs_yard[fdir + 1]
|
sign_info = signs_yard[fdir + 1]
|
||||||
else
|
else
|
||||||
@ -156,6 +151,12 @@ minetest.register_node(":default:sign_wall", {
|
|||||||
sign_info = signs[fdir + 1]
|
sign_info = signs[fdir + 1]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local def = minetest.registered_nodes[minetest.env:get_node(pointed_thing.above).name]
|
||||||
|
if homedecor_node_is_owned(pointed_thing.above, placer)
|
||||||
|
or (not def.buildable_to) then
|
||||||
|
return
|
||||||
|
end
|
||||||
|
|
||||||
local text = minetest.env:add_entity({x = above.x + sign_info.delta.x,
|
local text = minetest.env:add_entity({x = above.x + sign_info.delta.x,
|
||||||
y = above.y + sign_info.delta.y,
|
y = above.y + sign_info.delta.y,
|
||||||
z = above.z + sign_info.delta.z}, "signs:text")
|
z = above.z + sign_info.delta.z}, "signs:text")
|
||||||
|
Loading…
Reference in New Issue
Block a user