X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=api.lua;fp=api.lua;h=6b2c82589fc06967b2a1590694c88629cc267d98;hb=684e9237cd6e3d28348383c2504e173d524f0700;hp=2527470fad6877b122db1fd7742fcc156c492fdb;hpb=3836215268b3a50ed7dbc6b07b2a2ced771487b2;p=signs_lib.git diff --git a/api.lua b/api.lua index 2527470..6b2c825 100644 --- a/api.lua +++ b/api.lua @@ -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]