Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CustomBackpacks] 1.6 compatibility #130

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Scott-mods
Copy link

Tested OK with a random mod adding custom backpacks (tested with 12/24/60/72/73 slots)

@@ -403,16 +403,20 @@ public static bool Prefix(SeedShop __instance, SpriteBatch b)
return false;
}
}
[HarmonyPatch(typeof(GameLocation), nameof(GameLocation.performAction))]
[HarmonyPatch(typeof(GameLocation), nameof(GameLocation.performAction), new Type[] { typeof(string[]), typeof(Farmer), typeof(Location) })]
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: this entire Harmony patch can probably be deprecated now, in favor of
GameLocation.RegisterTileAction("BuyBackpack", (loc, args, who, Tile) => /* current loop over bags & prompt */

Only leaving it up because it works & I lack context to be confident in the change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant