Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion Code/ClintVolumeControl.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using Microsoft.Xna.Framework.Audio;
#if false

using Microsoft.Xna.Framework.Audio;
using StardewModdingAPI;
using StardewValley;
using StardewValley.BellsAndWhistles;
Expand Down Expand Up @@ -156,3 +158,5 @@ public void Dispose()
}
}
}

#endif
5 changes: 4 additions & 1 deletion Code/HarmonyPatch_TMXLLoadMapFacingDirection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ public static void ApplyPatch(Harmony harmony, IMonitor monitor)
Monitor = monitor; //store monitor

Monitor.Log($"Applying Harmony patch \"{nameof(HarmonyPatch_TMXLLoadMapFacingDirection)}\": prefixing SDV method \"Game1.warpFarmer(LocationRequest, int, int, int)\".", LogLevel.Trace);
MethodInfo original = Constants.TargetPlatform == GamePlatform.Android
? AccessTools.Method(typeof(Game1), nameof(Game1.warpFarmer), new[] { typeof(LocationRequest), typeof(int), typeof(int), typeof(int), typeof(bool) })
: AccessTools.Method(typeof(Game1), nameof(Game1.warpFarmer), new[] { typeof(LocationRequest), typeof(int), typeof(int), typeof(int) });
harmony.Patch(
original: AccessTools.Method(typeof(Game1), nameof(Game1.warpFarmer), new[] { typeof(LocationRequest), typeof(int), typeof(int), typeof(int) }),
original: original,
prefix: new HarmonyMethod(typeof(HarmonyPatch_TMXLLoadMapFacingDirection), nameof(Game1_warpFarmer))
);

Expand Down
2 changes: 1 addition & 1 deletion Code/ModEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public override void Entry(IModHelper helper)

CustomBuffs.Enable(helper, Monitor);

ClintVolumeControl.Enable(helper, Monitor);
//ClintVolumeControl.Enable(helper, Monitor);

FireflySpawner.Enable(helper, Monitor);

Expand Down