Skip to content

Commit

Permalink
Merge pull request #490 from hubastard/research-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
PhantomGamers authored Dec 28, 2021
2 parents b1e2225 + 5f900f9 commit af2d144
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

0.7.7:

- @starfi5h, @PhantomGamers: Fixed issue where research removed by clients would not be synced.

0.7.6:

- @starfi5h: Added syncing of ray receiver output
Expand Down
7 changes: 7 additions & 0 deletions NebulaPatcher/Patches/Dynamic/GameHistoryData_Patch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -148,5 +148,12 @@ public static bool UnlockTech_Prefix()
//Wait for the authoritative packet for unlocking tech features in multiplayer for clients
return !Multiplayer.IsActive || Multiplayer.Session.LocalPlayer.IsHost || Multiplayer.Session.History.IsIncomingRequest;
}

[HarmonyPrefix]
[HarmonyPatch(nameof(GameHistoryData.RemoveTechInQueue))]
public static void RemoveTechInQueue_Prefix(int index, out int __state)
{
__state = GameMain.history.techQueue[index];
}
}
}
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "0.7.6",
"version": "0.7.7",
"assemblyVersion": {
"precision": "build"
},
Expand Down

0 comments on commit af2d144

Please sign in to comment.