Skip to content

Commit

Permalink
fix(input): change vertical belt targeting to use hand (#136)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xenira committed Mar 10, 2024
1 parent 130b7e4 commit 5787234
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ env:
MOD_NAME: "techtonica_vr"
PI_UTILS_VERSION: "0.2.0"
TTIK_VERSION: "0.1.4"
TOBEY_UNITY_AUDIO_VERSION: "2.0.2"

jobs:
release-please:
Expand All @@ -39,7 +40,7 @@ jobs:
with:
repo: "toebeann/Tobey.UnityAudio"
file: "Tobey.UnityAudio.zip"
version: "tags/v2.0.2"
version: "tags/v${{ env.TOBEY_UNITY_AUDIO_VERSION }}"
token: ${{ secrets.DEPENDENCY_TOKEN }}
- name: Download PiUtils
if: ${{ steps.release.outputs.release_created }}
Expand Down
11 changes: 9 additions & 2 deletions plugin/src/camera/patch/builder/conveyor_builder_patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,15 @@ class ConveyorBuilderPatch
{
[HarmonyPatch(typeof(ConveyorBuilder), nameof(ConveyorBuilder.GetTargetEndPt))]
[HarmonyTranspiler]
public static IEnumerable<CodeInstruction> ReassembleTranspiler(IEnumerable<CodeInstruction> instructions)
public static IEnumerable<CodeInstruction> GetTargetEndPtReassemble(IEnumerable<CodeInstruction> instructions)
{
return Transpile.reassemblePatch<ConveyorBuilder>(instructions, 5);
return Transpile.reassemblePatch<ConveyorBuilder>(instructions, 3);
}

[HarmonyPatch(typeof(ConveyorBuilder), nameof(ConveyorBuilder.UpdateEndForVerticalBelt))]
[HarmonyTranspiler]
public static IEnumerable<CodeInstruction> UpdateEndForVerticalBeltReassemble(IEnumerable<CodeInstruction> instructions)
{
return Transpile.reassemblePatch<ConveyorBuilder>(instructions, 2);
}
}

0 comments on commit 5787234

Please sign in to comment.