fix: set _last_steer_vehicle
This commit is contained in:
parent
8655c5ebde
commit
82cd2fbf1d
1 changed files with 1 additions and 0 deletions
|
@ -66,6 +66,7 @@ class GameWorld(Scaffold):
|
||||||
self.position.x, self.position.y, self.position.z
|
self.position.x, self.position.y, self.position.z
|
||||||
)
|
)
|
||||||
if time() - self._last_steer_vehicle >= 5:
|
if time() - self._last_steer_vehicle >= 5:
|
||||||
|
self._last_steer_vehicle = time()
|
||||||
await self.dispatcher.write(
|
await self.dispatcher.write(
|
||||||
PacketSteerVehicle(
|
PacketSteerVehicle(
|
||||||
self.dispatcher.proto,
|
self.dispatcher.proto,
|
||||||
|
|
Loading…
Reference in a new issue