Skip to content

Commit c84c3d4

Browse files
committed
Fix fuel refilled rule error
1 parent e51c983 commit c84c3d4

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

src/interface/aircraft.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ export abstract class AircraftConfig {
142142
}
143143

144144
/**
145+
*
146+
* @param args
147+
*/
145148
emergencyLights(...args: any): FeatureState {
146149
return null
147150
}

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "plugin",
2+
"name": "acars-default",
33
"version": "1.0.0",
44
"type": "module",
55
"config": {

src/rules/fuel_refilled.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export default class FuelRefilled implements Rule {
3535
return
3636
}
3737

38-
if (data.fuelQuantity.Pounds > previousData.fuelQuantity.Pounds) {
38+
if (data.fuelQuantity.Pounds < previousData.fuelQuantity.Pounds) {
3939
return
4040
}
4141

src/types/global.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ declare global {
1111
/** Get something from storage */
1212
function Get(key: string): any {}
1313
/** Save something to storage */
14-
function Set(key: string, value?: any): void {}
14+
function Set(key: string, value: any): void {}
1515
/**
1616
* Sets a property on the PIREP using the specified key and value.
1717
*

0 commit comments

Comments
 (0)