Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
searica committed Nov 1, 2023
1 parent 97685e2 commit 273e921
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions JotunnLib/Managers/SynchronizationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ internal void SynchronizeChangedConfig()
if (ZNet.instance.IsClientInstance())
{
// Fire event that admin config will be changed locally, since the RPC does not come back to the sender
InvokeOnApplyingConfiguration();
InvokeOnSyncingConfiguration();
ConfigRPC.SendPackage(ZRoutedRpc.instance.GetServerPeerID(), package);

// Get IDs of plugins that received data
Expand Down Expand Up @@ -826,7 +826,7 @@ private void ResetAdminConfigs()

private IEnumerator ConfigRPC_OnClientReceive(long sender, ZPackage package)
{
InvokeOnApplyingConfiguration();
InvokeOnSyncingConfiguration();

byte packageFlags = package.ReadByte();

Expand All @@ -847,7 +847,7 @@ private IEnumerator ConfigRPC_OnServerReceive(long sender, ZPackage package)
if (ZNet.instance.IsAdmin(sender))
{
Logger.LogInfo($"Received configuration data from client {sender}");
InvokeOnApplyingConfiguration();
InvokeOnSyncingConfiguration();

// Apply config locally
ApplyConfigZPackage(package, out bool initial, out HashSet<string> pluginGUIDs);
Expand Down Expand Up @@ -877,7 +877,7 @@ private void InvokeOnConfigurationSynchronized(bool initial, HashSet<string> plu
/// <summary>
/// Safely invoke the <see cref="OnConfigurationSynchronized"/> event
/// </summary>
private void InvokeOnApplyingConfiguration()
private void InvokeOnSyncingConfiguration()
{
OnSyncingConfiguration?.SafeInvoke(this, new SyncingConfigurationEventArgs());
}
Expand Down

0 comments on commit 273e921

Please sign in to comment.