fix: catch housing exceptions
This commit is contained in:
parent
0818c77a4e
commit
e5585be0f4
|
@ -39,8 +39,17 @@ public class ScreenshotMetadata {
|
|||
eorzea = new EorzeaTime((ulong) framework->ClientTime.EorzeaTime);
|
||||
|
||||
var housing = HousingManager.Instance();
|
||||
ward = (uint) housing->GetCurrentWard();
|
||||
plot = (uint) housing->GetCurrentPlot();
|
||||
try {
|
||||
ward = (uint) housing->GetCurrentWard();
|
||||
} catch {
|
||||
ward = 0;
|
||||
}
|
||||
|
||||
try {
|
||||
plot = (uint) housing->GetCurrentPlot();
|
||||
} catch {
|
||||
plot = 0;
|
||||
}
|
||||
|
||||
var env = EnvManager.Instance();
|
||||
var weatherId = env->ActiveWeather;
|
||||
|
|
Loading…
Reference in New Issue