Skip to content

Commit

Permalink
Stop Patching every single call.
Browse files Browse the repository at this point in the history
Fix: Corrected default to be the same as techExists for sameData as this was causing the game to think EVERY recipe was needing patching no matter if it is the same or not......   because well sameData was always false
  • Loading branch information
MrPurple6411 committed Jan 1, 2024
1 parent 1a8b4ad commit c819b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Nautilus/Patchers/CraftDataPatcher_Subnautica.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ private static void NeedsPatchingCheckPrefix(TechType techType)
{
bool techExists = CraftData.techData.TryGetValue(techType, out CraftData.TechData techData);

bool sameData = false;
bool sameData = techExists;
if (techExists && CustomRecipeData.TryGetValue(techType, out ITechData customTechData))
{
sameData = customTechData.craftAmount == techData.craftAmount &&
Expand Down

0 comments on commit c819b5f

Please sign in to comment.