fix: set _last_steer_vehicle

This commit is contained in:
əlemi 2023-03-16 16:32:07 +01:00
parent 8655c5ebde
commit 82cd2fbf1d
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -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,