Skip to content

Commit

Permalink
v3.1.2 fixes a few cases that 3.1.1 did miss
Browse files Browse the repository at this point in the history
  • Loading branch information
pardeike committed Nov 18, 2020
1 parent 0abd98d commit 0e863d6
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Binary file modified 1.1/Assemblies/AchtungMod.dll
Binary file not shown.
Binary file modified 1.2/Assemblies/AchtungMod.dll
Binary file not shown.
2 changes: 1 addition & 1 deletion About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>net.pardeike.rimworld.mod.achtung</identifier>
<version>3.1.1.0</version>
<version>3.1.2.0</version>
<targetVersions>
<li>1.0.0</li>
<li>1.1.0</li>
Expand Down
2 changes: 1 addition & 1 deletion About/ModSync.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<ModSyncNinjaData>
<ID>be673269-db56-463b-8c36-e074881e0d77</ID>
<ModName>Achtung!</ModName>
<Version>3.1.1.0</Version>
<Version>3.1.2.0</Version>
<SaveBreaking>False</SaveBreaking>
<Host name="Github">
<Owner>pardeike</Owner>
Expand Down
4 changes: 2 additions & 2 deletions Source/ForcedFloatMenuOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ public static bool ForceActionSynced(Pawn forcePawn, WorkGiver_Scanner forceWork
var workgiverDefs = ForcedWork.GetCombinedDefs(forceWorkgiver);
foreach (var workgiverDef in workgiverDefs)
{
var workgiver = workgiverDef.Worker as WorkGiver_Scanner;
var workgiver = workgiverDef.giverClass == null ? null : workgiverDef.Worker as WorkGiver_Scanner;
if (workgiver == null) continue;

var item = ForcedWork.HasJobItem(forcePawn, workgiver, cell);
Expand Down Expand Up @@ -194,4 +194,4 @@ public virtual bool ForceAction()
return ForceActionSynced(forcePawn, forceWorkgiver, forceCell.x, forceCell.z);
}
}
}
}
4 changes: 2 additions & 2 deletions Source/ForcedJob.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public IEnumerable<IntVec3> AllCells(bool onlyValid = false)
return validTargets.Select(target => target.item.Cell);
}

public IEnumerable<WorkGiver_Scanner> WorkGivers => workgiverDefs.Select(wgd => (WorkGiver_Scanner)wgd.Worker);
public IEnumerable<WorkGiver_Scanner> WorkGivers => workgiverDefs.Where(wgd => wgd.giverClass != null).Select(wgd => (WorkGiver_Scanner)wgd.Worker);

public static int MaterialScore(LocalTargetInfo item)
{
Expand Down Expand Up @@ -476,4 +476,4 @@ public static Job GetCellJob(this IntVec3 cell, Pawn pawn, WorkGiver_Scanner wor
return null;
}
}
}
}
4 changes: 2 additions & 2 deletions Source/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@

[assembly: Guid("8bd5a28f-96c4-43b4-907f-600aa0162f84")]

[assembly: AssemblyVersion("3.1.1.0")]
[assembly: AssemblyFileVersion("3.1.1.0")]
[assembly: AssemblyVersion("3.1.2.0")]
[assembly: AssemblyFileVersion("3.1.2.0")]

0 comments on commit 0e863d6

Please sign in to comment.