Fixed bugs

This commit is contained in:
6d486f49
2025-11-07 18:22:21 -05:00
parent 8ce9084ffb
commit fe1a583da9
8 changed files with 31 additions and 34 deletions
+1 -1
View File
@@ -94,7 +94,7 @@ public class BuildOrderModel
return (from ordersAtTime in StartedOrders
from orders in ordersAtTime.Value
where ordersAtTime.Key + (orders.Production() == null ? 0 : orders.Production().BuildTime) <= interval
where orders.Harvest() != null
where orders.Harvester() != null
select orders).ToList();
}
}
+1 -1
View File
@@ -255,7 +255,7 @@ public class EntityModel
}
public EntityHarvesterModel Harvest()
public EntityHarvesterModel? Harvester()
{
return (EntityHarvesterModel)EntityParts.Find(x => x.GetType() == typeof(EntityHarvesterModel))!;
}
+4 -1
View File
@@ -1,6 +1,9 @@
namespace Model.Entity.Parts;
using System.Text.Json.Serialization;
namespace Model.Entity.Parts;
public class IEntityPartInterface
{
[JsonIgnore]
public EntityModel Parent { get; set; }
}