Compile engine and mod dlls as NET5 when not using mono

This commit is contained in:
teinarss
2021-02-21 16:56:24 +01:00
committed by Paul Chote
parent 4a1e4f3e16
commit ed43071792
7 changed files with 12 additions and 6 deletions

View File

@@ -147,7 +147,7 @@ namespace OpenRA.Mods.Common.Traits
var possibleBuilding = world.ActorsWithTrait<Pluggable>().FirstOrDefault(a =>
a.Actor.Owner == player && a.Trait.AcceptsPlug(a.Actor, plugInfo.Type));
if (possibleBuilding != null)
if (possibleBuilding.Actor != null)
{
orderString = "PlacePlug";
location = possibleBuilding.Actor.Location + possibleBuilding.Trait.Info.Offset;