Prevent some more errors

This commit is contained in:
Tamius Han 2021-01-31 16:46:33 +01:00
parent fff575f762
commit 78c04523c0

View File

@ -86,7 +86,11 @@ class PlayerUi extends UI {
//#region lifecycle
replace(playerElement) {
super.replace(this.getUiConfig(playerElement));
try {
super.replace(this.getUiConfig(playerElement));
} catch (e) {
this.logger.log('error', 'Couldn\'t replace player element for ui. Error:', e);
}
}
//#endregion
}