Fix nil error in find_target()

This commit is contained in:
Niklp 2023-11-26 18:02:11 +01:00 committed by SmallJoker
parent 5480f4c9df
commit 025b3a5298

View File

@ -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