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

fixed a similar bug in signs code

This commit is contained in:
Vanessa Ezekowitz 2013-04-03 22:53:23 -04:00
parent ec36f798c5
commit 1ca5d00096

View File

@ -122,9 +122,9 @@ minetest.register_node(":default:sign_wall", {
end end
local node=minetest.env:get_node(pointed_thing.under) local node=minetest.env:get_node(pointed_thing.under)
if minetest.registered_nodes[node.name].on_rightclick then
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer)
if minetest.registered_nodes[node.name] and minetest.registered_nodes[node.name].on_rightclick then
return minetest.registered_nodes[node.name].on_rightclick(pointed_thing.under, node, placer)
else else
local above = pointed_thing.above local above = pointed_thing.above
local under = pointed_thing.under local under = pointed_thing.under