Update control.lua

removed reference to automobiles
This commit is contained in:
Alexsandro Percy 2023-02-28 08:25:54 -03:00 committed by GitHub
parent 8915d062f3
commit e0f05609f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,7 +100,7 @@ function ap_airship.control(self, dtime, hull_direction, longit_speed, accel)
--end lift
--check if is near the ground, so revert the flight mode
local noded = automobiles_lib.nodeatpos(airutils.pos_shift(self.object:get_pos(),{y=-4}))
local noded = airutils.nodeatpos(airutils.pos_shift(self.object:get_pos(),{y=-4}))
if (noded and noded.drawtype ~= 'airlike') then
--avoid liquids
if noded.drawtype == 'liquid' then