fix: catch exceptions in events

This commit is contained in:
Anna 2021-04-16 08:21:29 -04:00
parent 7ce47da30f
commit 0c284a37d4
1 changed files with 7 additions and 3 deletions

View File

@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Numerics;
using Dalamud.Game.Internal;
using Dalamud.Plugin;
using Lumina.Excel.GeneratedSheets;
namespace Tourist {
@ -81,9 +82,12 @@ namespace Tourist {
return;
}
this.RemoveAllVfx();
this.SpawnVfxForCurrentZone(territory);
try {
this.RemoveAllVfx();
this.SpawnVfxForCurrentZone(territory);
} catch (Exception ex) {
PluginLog.LogError(ex, "Exception in territory change");
}
}
private void OnFrameworkUpdate(Framework framework) {