fix buildable-to-not-buildable transition detection

This commit is contained in:
FaceDeer 2020-02-12 01:03:23 -07:00
parent 8fef54a8fc
commit 3a05851205

View File

@ -266,7 +266,7 @@ local function find_target(raycast)
local above_node = minetest.get_node(above_pos) local above_node = minetest.get_node(above_pos)
local above_def = minetest.registered_nodes[above_node.name] local above_def = minetest.registered_nodes[above_node.name]
if above_def.buildable_to and under_def.walkable then if above_def.buildable_to and not under_def.buildable_to then
return next_pointed return next_pointed
end end