don't allow top of bottom to be considered

a mountable surface on a a pole/post.
This commit is contained in:
Vanessa Dannenberg 2019-09-26 01:00:15 -04:00
parent 3836215268
commit 684e9237cd

View File

@ -763,6 +763,10 @@ function signs_lib.check_for_pole(pos, pointed_thing)
if not pdef then return end
if signs_lib.check_for_ceiling(pointed_thing) or signs_lib.check_for_floor(pointed_thing) then
return false
end
if type(pdef.check_for_pole) == "function" then
local node = minetest.get_node(pos)
local def = minetest.registered_items[node.name]
@ -782,6 +786,10 @@ function signs_lib.check_for_horizontal_pole(pos, pointed_thing)
if not pdef then return end
if signs_lib.check_for_ceiling(pointed_thing) or signs_lib.check_for_floor(pointed_thing) then
return false
end
if type(pdef.check_for_horiz_pole) == "function" then
local node = minetest.get_node(pos)
local def = minetest.registered_items[node.name]