From 178dea07229e9bc67bf509b70b133f9552ee750a Mon Sep 17 00:00:00 2001 From: Mister_Nebula <41904486+misternebula@users.noreply.github.com> Date: Mon, 13 Sep 2021 19:22:07 +0100 Subject: [PATCH] remove some debug logs --- QSB/Player/Events/RequestStateResyncEvent.cs | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/QSB/Player/Events/RequestStateResyncEvent.cs b/QSB/Player/Events/RequestStateResyncEvent.cs index 523be17c..9350e835 100644 --- a/QSB/Player/Events/RequestStateResyncEvent.cs +++ b/QSB/Player/Events/RequestStateResyncEvent.cs @@ -20,11 +20,7 @@ namespace QSB.Player.Events public override void SetupListener() => GlobalMessenger.AddListener(EventNames.QSBRequestStateResync, Handler); public override void CloseListener() => GlobalMessenger.RemoveListener(EventNames.QSBRequestStateResync, Handler); - private void Handler() - { - DebugLog.DebugWrite($"Sending QSBRequestStateResync"); - SendEvent(CreateMessage()); - } + private void Handler() => SendEvent(CreateMessage()); private PlayerMessage CreateMessage() => new PlayerMessage { @@ -33,16 +29,11 @@ namespace QSB.Player.Events public override void OnReceiveRemote(bool isHost, PlayerMessage message) { - DebugLog.DebugWrite($"OnReceiveRemote RequestStateResyncEvent"); - // if host, send worldobject and server states if (isHost) { - DebugLog.DebugWrite($"SENDING SERVER STATE"); QSBEventManager.FireEvent(EventNames.QSBServerState, ServerStateManager.Instance.GetServerState()); - - DebugLog.DebugWrite($"SENDING PLAYER INFORMATION"); QSBEventManager.FireEvent(EventNames.QSBPlayerInformation); SendWorldObjectInfo(); @@ -51,15 +42,11 @@ namespace QSB.Player.Events } // if client, send player and client states - - DebugLog.DebugWrite($"SENDING PLAYER INFORMATION"); QSBEventManager.FireEvent(EventNames.QSBPlayerInformation); } private void SendWorldObjectInfo() { - DebugLog.DebugWrite($"SENDING WORLDOBJECT INFORMATION"); - QSBWorldSync.DialogueConditions.ForEach(condition => QSBEventManager.FireEvent(EventNames.DialogueCondition, condition.Key, condition.Value));