~ruther/NosSmooth

f8a5e9e7a510672775eecbeb03e6a933910ff79e — NotKappa 2 years ago b686383
Apply suggestions
M Core/NosSmooth.Game/Events/Map/MapChangedEvent.cs => Core/NosSmooth.Game/Events/Map/MapChangedEvent.cs +1 -1
@@ 14,5 14,5 @@ namespace NosSmooth.Game.Events.Map;
public record MapChangedEvent
(
    Data.Maps.Map? PreviousMap,
    Data.Maps.Map? CurrentMap
    Data.Maps.Map CurrentMap
) : IGameEvent;
\ No newline at end of file

M Core/NosSmooth.Game/PacketHandlers/Map/CMapResponder.cs => Core/NosSmooth.Game/PacketHandlers/Map/CMapResponder.cs +6 -1
@@ 97,6 97,11 @@ public class CMapResponder : IPacketResponder<CMapPacket>
            ct: ct
        );

        return await _eventDispatcher.DispatchEvent(new MapChangedEvent(previousMap, _game.CurrentMap), ct);
        if (currentMap is not null)
        {
            return await _eventDispatcher.DispatchEvent(new MapChangedEvent(previousMap, currentMap), ct);
        }

        return Result.FromSuccess();
    }
}
\ No newline at end of file

Do not follow this link