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:
parent
e9c86e63f8
commit
0fb8e82cfa
2
init.lua
2
init.lua
@ -69,7 +69,7 @@ minetest.register_node("sounding_line:sounding_line", {
|
|||||||
encountered_lava = true
|
encountered_lava = true
|
||||||
end
|
end
|
||||||
local def = minetest.registered_nodes[name]
|
local def = minetest.registered_nodes[name]
|
||||||
if not def.buildable_to then
|
if def.walkable then
|
||||||
end_depth = pos.y - y
|
end_depth = pos.y - y
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user