mirror of
https://github.com/RHeavenStudio/HeavenStudio.git
synced 2025-06-12 12:07:41 +02:00
fix weird edge case in toss boys autodispense
let beataction throw exceptions
This commit is contained in:
@ -466,8 +466,15 @@ namespace HeavenStudio.Games
|
||||
if (passBallDict.TryGetValue(beat + lastLength, out var e))
|
||||
{
|
||||
if (e.datamodel == "tossBoys/pop") return;
|
||||
curReceiver = e["who"];
|
||||
blurSet = e.datamodel == "tossBoys/blur";
|
||||
if (blurSet)
|
||||
{
|
||||
curReceiver = (int)WhichTossKid.None;
|
||||
}
|
||||
else
|
||||
{
|
||||
curReceiver = e["who"];
|
||||
}
|
||||
currentLength = e.length;
|
||||
nextIsSpecial = IsSpecialEvent(e.datamodel);
|
||||
eventDatamodel = e.datamodel;
|
||||
|
@ -58,7 +58,14 @@ namespace HeavenStudio.Util
|
||||
if (behaviour == null || !(conductor.isPlaying || conductor.isPaused))
|
||||
return;
|
||||
|
||||
actions[idx].function.Invoke();
|
||||
try
|
||||
{
|
||||
actions[idx].function.Invoke();
|
||||
}
|
||||
catch (System.Exception e)
|
||||
{
|
||||
Debug.LogError($"Exception thrown while executing BeatAction: {e}");
|
||||
}
|
||||
idx++;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user