diff --git a/CHANGELOG.md b/CHANGELOG.md
index fea4871..8141fc9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,4 +3,8 @@
- Initial project setup
- Added config dependency
- Added utils and debug functions
-- Added config handler
\ No newline at end of file
+- Added config handler
+
+# v0.1.1 | Throw passport anywhere patch
+
+- Added PassportPatch.cs and registerd it as GlobalPatch in Plugin.cs
diff --git a/src/JordanMod/JordanMod.csproj b/src/JordanMod/JordanMod.csproj
index 1c8e2c2..1dde2ae 100644
--- a/src/JordanMod/JordanMod.csproj
+++ b/src/JordanMod/JordanMod.csproj
@@ -8,7 +8,7 @@
JordanMod
- 0.1.0
+ 0.1.1
diff --git a/src/JordanMod/Plugin.cs b/src/JordanMod/Plugin.cs
index 112caae..8c27711 100644
--- a/src/JordanMod/Plugin.cs
+++ b/src/JordanMod/Plugin.cs
@@ -16,7 +16,9 @@ public partial class Plugin : BaseUnityPlugin
private static Harmony? _harmony;
private ModuleManager? _moduleManager;
- private static readonly List _globalPatches = [];
+ private static readonly List _globalPatches = [
+ typeof(Patches.PassportPatch),
+ ];
private void Awake()
{
diff --git a/src/JordanMod/patches/ExamplePatch.cs b/src/JordanMod/patches/ExamplePatch.cs
index 458c8ac..9818797 100644
--- a/src/JordanMod/patches/ExamplePatch.cs
+++ b/src/JordanMod/patches/ExamplePatch.cs
@@ -4,14 +4,4 @@ namespace JordanMod.Patches;
public class ExamplePatch
{
- [HarmonyPatch(typeof(Item), "Start")]
- [HarmonyPostfix]
- static void PostItemStartFix(Item __instance)
- {
- if (__instance.UIData.itemName.ToLower() == "passport")
- {
- __instance.UIData.canDrop = true;
- __instance.UIData.canThrow = true;
- }
- }
}
\ No newline at end of file
diff --git a/src/JordanMod/patches/PassportPatch.cs b/src/JordanMod/patches/PassportPatch.cs
new file mode 100644
index 0000000..d21d41e
--- /dev/null
+++ b/src/JordanMod/patches/PassportPatch.cs
@@ -0,0 +1,17 @@
+using HarmonyLib;
+
+namespace JordanMod.Patches;
+
+public class PassportPatch
+{
+ [HarmonyPatch(typeof(Item), "Start")]
+ [HarmonyPostfix]
+ static void PostItemStartFix(Item __instance)
+ {
+ if (__instance.UIData.itemName.ToLower() == "passport")
+ {
+ __instance.UIData.canDrop = true;
+ __instance.UIData.canThrow = true;
+ }
+ }
+}
\ No newline at end of file