Skip to content

Commit

Permalink
Update ConfigurationChangeMediator.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-n committed Oct 27, 2023
1 parent cc6ad21 commit 97ce5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GameLogic/ConfigurationChangeMediator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ public IDisposable RegisterForNew<TConfig, T>(T obj, Func<TConfig, T, ValueTask>
{
var registration = (CreateRegistration<TConfig>)this._createRegistrations.AddOrUpdate(
typeof(TConfig),
key => new CreateRegistration<TConfig>(),
(key, value) => value);
_ => new CreateRegistration<TConfig>(),
(_, value) => value);
registration.OnCreate += InvokeOnCreate;

return registration;
Expand Down

0 comments on commit 97ce5ff

Please sign in to comment.