Fix nil error in find_target()
This commit is contained in:
parent
5480f4c9df
commit
025b3a5298
2
init.lua
2
init.lua
@ -306,7 +306,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 and not under_def.buildable_to) or not under_def) then
|
if above_def and above_def.buildable_to and ((under_def and not under_def.buildable_to) or not under_def) then
|
||||||
return next_pointed
|
return next_pointed
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user