changing determination of empty to being less than 5 bushels because if hte auto inventory sets it to 0 it causes null issues between golang and the DB

This commit is contained in:
csawatzky 2025-06-11 13:56:44 -06:00
parent d5f3cb727c
commit 7ef12f1078

View file

@ -96,7 +96,7 @@ export class Bin {
} }
public empty(): boolean { 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 { public objectType(): pond.ObjectType {