Skip to content

Commit

Permalink
Merge pull request #5 from alextd/master
Browse files Browse the repository at this point in the history
Fix conflict with ReplaceStuff
  • Loading branch information
juanosarg authored Apr 12, 2021
2 parents 590c233 + 06d2689 commit 61e4b7c
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified 1.2/Assemblies/VanillaPowerExpanded.dll
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
// Copyright Karel Kroeze, 2020-2020

using Verse;
using System.Linq;

namespace GasNetwork
{
Expand All @@ -11,7 +12,7 @@ public override AcceptanceReport AllowsPlacing( BuildableDef checkingDef, IntVec
Thing thing = null )
{
// don't allow building pipes on top of piped buildings (blueprints)
return !loc.GetThingList( map ).Any( t => t.def.BuildingFrameOrBlueprintEverTransmitsGas() );
return !loc.GetThingList( map ).Where(t => t != thingToIgnore).Any( t => t.def.BuildingFrameOrBlueprintEverTransmitsGas() );
}
}
}
Binary file not shown.

0 comments on commit 61e4b7c

Please sign in to comment.