fix error on passenger attach when in auto mode

This commit is contained in:
Alexsandro Percy 2024-03-09 22:30:39 -03:00
parent 2276891db7
commit b98020f434
1 changed files with 1 additions and 1 deletions

View File

@ -927,7 +927,7 @@ function airutils.on_rightclick(self, clicker)
--TODO - _autoflymode
elseif self.driver_name ~= nil or self._autoflymode == true then
local player = minetest.get_player_by_name(self.driver_name)
if player then
if player or self._autoflymode == true then
is_attached = airutils.check_passenger_is_attached(self, name)
if is_attached then