...
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
var requirements = entity.Requirements();
|
var requirements = entity.Requirements();
|
||||||
var vanguardAdded = entity.VanguardAdded();
|
var vanguardAdded = entity.VanguardAdded();
|
||||||
|
if (vanguardAdded == null) continue;
|
||||||
var replaced = EntityData.Get()[vanguardAdded.ReplaceId];
|
var replaced = EntityData.Get()[vanguardAdded.ReplaceId];
|
||||||
var immortal = EntityData.Get()[vanguardAdded.ImmortalId];
|
var immortal = EntityData.Get()[vanguardAdded.ImmortalId];
|
||||||
|
|
||||||
|
|||||||
@@ -282,7 +282,8 @@ public class BuildOrderService : IBuildOrderService
|
|||||||
{
|
{
|
||||||
return (from ordersAtTime in _buildOrder.StartedOrders
|
return (from ordersAtTime in _buildOrder.StartedOrders
|
||||||
from orders in ordersAtTime.Value
|
from orders in ordersAtTime.Value
|
||||||
where ordersAtTime.Key + (orders.Production() == null ? 0 : orders.Production().BuildTime) <= interval
|
let production = orders.Production()
|
||||||
|
where ordersAtTime.Key + (production?.BuildTime ?? 0) <= interval
|
||||||
select orders).ToList();
|
select orders).ToList();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class StorageService : IStorageService
|
|||||||
|
|
||||||
public T GetValue<T>(string forKey)
|
public T GetValue<T>(string forKey)
|
||||||
{
|
{
|
||||||
return _localStorageService.GetItem<T>(forKey);
|
return _localStorageService.GetItem<T>(forKey)!;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void SetValue<T>(string key, T value)
|
public void SetValue<T>(string key, T value)
|
||||||
|
|||||||
Reference in New Issue
Block a user