fix: catch exceptions in events
This commit is contained in:
parent
33c7342fd8
commit
2e68e226ad
|
@ -3,6 +3,7 @@ using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Numerics;
|
using System.Numerics;
|
||||||
using Dalamud.Game.Internal;
|
using Dalamud.Game.Internal;
|
||||||
|
using Dalamud.Plugin;
|
||||||
using Lumina.Excel.GeneratedSheets;
|
using Lumina.Excel.GeneratedSheets;
|
||||||
|
|
||||||
namespace Tourist {
|
namespace Tourist {
|
||||||
|
@ -81,9 +82,12 @@ namespace Tourist {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
this.RemoveAllVfx();
|
this.RemoveAllVfx();
|
||||||
|
|
||||||
this.SpawnVfxForCurrentZone(territory);
|
this.SpawnVfxForCurrentZone(territory);
|
||||||
|
} catch (Exception ex) {
|
||||||
|
PluginLog.LogError(ex, "Exception in territory change");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnFrameworkUpdate(Framework framework) {
|
private void OnFrameworkUpdate(Framework framework) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user