use "walkable" instead of "buildable to" to detect obstructions

Previously this was registering torches as obstructions, which could
lead to an unfortunate incident if a player jumped into a hole expecting
a landing.
This commit is contained in:
FaceDeer 2017-02-05 17:42:54 -07:00
parent e9c86e63f8
commit 0fb8e82cfa

View File

@ -69,7 +69,7 @@ minetest.register_node("sounding_line:sounding_line", {
encountered_lava = true
end
local def = minetest.registered_nodes[name]
if not def.buildable_to then
if def.walkable then
end_depth = pos.y - y
end