diff --git a/balloon.lua b/balloon.lua index 9f06e49..b4e28cc 100644 --- a/balloon.lua +++ b/balloon.lua @@ -286,8 +286,8 @@ function ship.on_step(self, dtime, moveresult) -- allow to exit if self._driver and self._driver:is_player() then local name = self._driver:get_player_name() - pi = player_info.p[name] - exit = pi.just_pressed.sneak + pi = self._driver:get_player_control() + exit = pi.sneak end if exit then me.detach(self)