fix buildable-to-not-buildable transition detection
This commit is contained in:
parent
8fef54a8fc
commit
3a05851205
2
init.lua
2
init.lua
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user