This commit is contained in:
Aaro Varis
2025-03-10 18:03:13 +02:00
parent 92ab39ed69
commit 3238fb7acf

View File

@@ -90,6 +90,16 @@ namespace BoneSync.Sync
}
}
public static void SendSceneSyncMessage(string sceneName)
{
int index = scenes.FindIndex(x => x.name == sceneName);
if (index == -1)
{
MelonLogger.Error("Scene not found: " + sceneName);
return;
}
SendSceneSyncMessage(index);
}
public static void SendSceneSyncMessage(int index)
{
if (!BoneSync.IsConnected) return;