Use another plug location for placing plugs on a building when current plug location is already blocked

This commit is contained in:
abc013
2019-10-11 19:02:55 +02:00
committed by abcdefg30
parent ba2d2299d9
commit c4f48ad521
2 changed files with 6 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ namespace OpenRA.Mods.Common.Orders
return false;
var location = host.Location;
return host.TraitsImplementing<Pluggable>().Any(p => location + p.Info.Offset == cell && p.AcceptsPlug(host, plug.Type));
return host.TraitsImplementing<Pluggable>().Any(p => p.AcceptsPlug(host, plug.Type));
}
IEnumerable<IRenderable> IOrderGenerator.Render(WorldRenderer wr, World world) { yield break; }