diff --git a/Fika.Core/Coop/PacketHandlers/DedicatedPacketSender.cs b/Fika.Core/Coop/PacketHandlers/DedicatedPacketSender.cs index 9344571d..0e18dd57 100644 --- a/Fika.Core/Coop/PacketHandlers/DedicatedPacketSender.cs +++ b/Fika.Core/Coop/PacketHandlers/DedicatedPacketSender.cs @@ -49,13 +49,7 @@ public void Init() StartCoroutine(SendTrainTime()); } - public void SendQuestPacket(ref QuestConditionPacket packet) - { - Writer.Reset(); - Server.SendDataToAll(Writer, ref packet, DeliveryMethod.ReliableUnordered); - } - - public void SendQuestItemPacket(ref QuestItemPacket packet) + public void SendQuestPacket(ref T packet) where T : INetSerializable { Writer.Reset(); Server.SendDataToAll(Writer, ref packet, DeliveryMethod.ReliableUnordered); diff --git a/Fika.Core/UI/Custom/MatchMakerUIScript.cs b/Fika.Core/UI/Custom/MatchMakerUIScript.cs index 68ccc8d6..50342976 100644 --- a/Fika.Core/UI/Custom/MatchMakerUIScript.cs +++ b/Fika.Core/UI/Custom/MatchMakerUIScript.cs @@ -34,7 +34,6 @@ public class MatchMakerUIScript : MonoBehaviour private string ProfileId => FikaBackendUtils.Profile.ProfileId; private float lastRefreshed; - private ISession session; private bool _started; private Coroutine serverQueryRoutine; @@ -65,7 +64,6 @@ protected void Start() { CreateMatchMakerUI(); serverQueryRoutine = StartCoroutine(ServerQuery()); - session = Singleton>.Instance.GetClientBackEndSession(); _started = true; } @@ -431,7 +429,7 @@ private void RefreshUI() Singleton.Instance.PlayUISound(EUISoundType.ButtonClick); //StartCoroutine(JoinMatch(ProfileId, server.name, button)); FikaBackendUtils.HostLocationId = entry.Location; - StartCoroutine(JoinMatch(profileId, server.name, button, () => + StartCoroutine(JoinMatch(ProfileId, server.name, button, () => { this.DestroyThis(); this.AcceptButton.OnClick.Invoke();