fail to deliver ore to a proc which has just died.
This commit is contained in:
@@ -85,7 +85,10 @@ namespace OpenRA.Mods.RA
|
||||
}
|
||||
|
||||
public void Deliver(Actor self, Actor proc)
|
||||
{
|
||||
{
|
||||
if (!proc.IsInWorld)
|
||||
return; // fail to deliver if there is no proc.
|
||||
|
||||
proc.Trait<IAcceptOre>().GiveOre(contents.Sum(kv => kv.Key.ValuePerUnit * kv.Value));
|
||||
contents.Clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user