diff --git a/src/models/Bin.ts b/src/models/Bin.ts index 177997a..c66d8f9 100644 --- a/src/models/Bin.ts +++ b/src/models/Bin.ts @@ -96,7 +96,7 @@ export class Bin { } public empty(): boolean { - return this.settings.inventory?.empty || this.settings.inventory?.grainBushels === 0; + return this.settings.inventory?.empty || (this.settings.inventory !== undefined && this.settings.inventory !== null && this.settings.inventory.grainBushels < 5); } public objectType(): pond.ObjectType {