Skip to content

Commit f270c65

Browse files
committed
Haul Urgent Hijacking
1 parent 2458877 commit f270c65

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Assemblies/PickUpAndHaul.dll

0 Bytes
Binary file not shown.

Source/PickUpAndHaul/PickUpAndHaul/HarmonyPatches.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ static HarmonyPatches()
4545
{
4646
if (ModCompatibilityCheck.AllowToolIsActive)
4747
{
48-
harmony.Patch(AccessTools.Method(typeof(AllowTool.WorkGiver_HaulUrgently), "JobOnThing"),
48+
harmony.Patch(AccessTools.Method(typeof(AllowTool.WorkGiver_HaulUrgently), nameof(AllowTool.WorkGiver_HaulUrgently.JobOnThing)),
4949
new HarmonyMethod(typeof(HarmonyPatches), nameof(AllowToolHaulUrgentlyJobOnThing_PreFix)), null, null);
5050
}
5151
}))();
@@ -66,7 +66,7 @@ static HarmonyPatches()
6666
}
6767
catch (TypeLoadException) { }
6868

69-
Log.Message("PickUpAndHaul v0.1.0.1 welcomes you to RimWorld with pointless logspam.");
69+
Log.Message("PickUpAndHaul v0.1.0.2 welcomes you to RimWorld with pointless logspam.");
7070
}
7171

7272
private static bool AllowToolHaulUrgentlyJobOnThing_PreFix(ref Job __result, Pawn pawn, Thing t, bool forced = false)
@@ -90,7 +90,7 @@ private static bool AllowToolHaulUrgentlyJobOnThing_PreFix(ref Job __result, Paw
9090
return false;
9191
}
9292

93-
Job haul = new Job(PickUpAndHaulJobDefOf.HaulToInventory, t)
93+
Job haul = new Job(PickUpAndHaulJobDefOf.HaulToInventory, t, storeCell)
9494
{
9595
count = t.stackCount
9696
};

Source/PickUpAndHaul/PickUpAndHaul/PickUpAndHaul.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
<Private>True</Private>
3636
</Reference>
3737
<Reference Include="AllowTool">
38-
<HintPath>..\..\..\..\..\..\..\workshop\content\294100\761421485\Assemblies\AllowTool.dll</HintPath>
38+
<HintPath>..\..\..\..\AllowTool 1.0\Assemblies\AllowTool.dll</HintPath>
3939
<Private>False</Private>
4040
</Reference>
4141
<Reference Include="Assembly-CSharp">

0 commit comments

Comments
 (0)