Button event sync and custom logger stuff
This commit is contained in:
@@ -16,11 +16,11 @@ namespace BoneSync.Patching
|
||||
/*[HarmonyPatch(nameof(BoneworksSceneManager.LoadScene)), HarmonyPostfix]
|
||||
private static void LoadScenePrefix(int sceneBuildIndex)
|
||||
{
|
||||
MelonLogger.Msg("LoadScenePrefix: " + sceneBuildIndex);
|
||||
SyncLogger.Msg("LoadScenePrefix: " + sceneBuildIndex);
|
||||
if (!BoneSync.IsConnected) return;
|
||||
if (BoneSync.lobby.IsHost)
|
||||
{
|
||||
MelonLogger.Msg("Host is loading scene, sending message to clients...");
|
||||
SyncLogger.Msg("Host is loading scene, sending message to clients...");
|
||||
SceneSync.SendSceneSyncMessage(sceneBuildIndex);
|
||||
}
|
||||
}*/
|
||||
|
||||
Reference in New Issue
Block a user