1
0
mirror of https://github.com/mt-mods/homedecor_modpack.git synced 2024-12-23 00:20:17 +01:00

Merge pull request #7 from kaeza/master

Fixed yard signs being able to overwrite other nodes
This commit is contained in:
VanessaE 2013-03-16 16:23:27 -07:00
commit fa732decdb

View File

@ -144,6 +144,11 @@ minetest.register_node(":default:sign_wall", {
itemstack:take_item()
return itemstack
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})
sign_info = signs_yard[fdir + 1]
else