mirror of
https://github.com/APercy/airutils.git
synced 2025-04-30 00:31:41 -04:00
fix error on passenger attach when in auto mode
This commit is contained in:
parent
2276891db7
commit
b98020f434
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue