mirror of
https://github.com/APercy/automobiles_pck
synced 2025-08-05 21:15:49 +02:00
fix
This commit is contained in:
parent
64fa93d8f9
commit
9540ab62a6
@ -99,10 +99,7 @@ function automobiles_lib.get_obstacle(ref_pos)
|
|||||||
--minetest.chat_send_all("bb y: " .. dump(i_pos.y))
|
--minetest.chat_send_all("bb y: " .. dump(i_pos.y))
|
||||||
|
|
||||||
local y = automobiles_lib.eval_interception(i_pos, {x=i_pos.x, y=i_pos.y - 2, z=i_pos.z})
|
local y = automobiles_lib.eval_interception(i_pos, {x=i_pos.x, y=i_pos.y - 2, z=i_pos.z})
|
||||||
if y then
|
|
||||||
retval.y = y
|
retval.y = y
|
||||||
end
|
|
||||||
--minetest.chat_send_all(dump(retval.y))
|
|
||||||
|
|
||||||
--minetest.chat_send_all("y: " .. dump(ref_pos.y) .. " ye: ".. dump(retval.y))
|
--minetest.chat_send_all("y: " .. dump(ref_pos.y) .. " ye: ".. dump(retval.y))
|
||||||
return retval
|
return retval
|
||||||
|
Loading…
Reference in New Issue
Block a user