diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index db33e25..d7251c8 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -227,7 +227,7 @@ function airutils.logic(self) --test collision airutils.testImpact(self, velocity, curr_pos) - if ent._autoflymode == true then airutils.seats_update(self) end + if self._autoflymode == true then airutils.seats_update(self) end if player then local ctrl = player:get_player_control()