forked from mtcontrib/signs_lib
don't allow top of bottom to be considered
a mountable surface on a a pole/post.
This commit is contained in:
parent
3836215268
commit
684e9237cd
8
api.lua
8
api.lua
@ -763,6 +763,10 @@ function signs_lib.check_for_pole(pos, pointed_thing)
|
|||||||
|
|
||||||
if not pdef then return end
|
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
|
if type(pdef.check_for_pole) == "function" then
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
local def = minetest.registered_items[node.name]
|
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 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
|
if type(pdef.check_for_horiz_pole) == "function" then
|
||||||
local node = minetest.get_node(pos)
|
local node = minetest.get_node(pos)
|
||||||
local def = minetest.registered_items[node.name]
|
local def = minetest.registered_items[node.name]
|
||||||
|
Loading…
Reference in New Issue
Block a user