diff --git a/src/ext/lib/uwui/PlayerUI.js b/src/ext/lib/uwui/PlayerUI.js index 88fc206..dbab156 100644 --- a/src/ext/lib/uwui/PlayerUI.js +++ b/src/ext/lib/uwui/PlayerUI.js @@ -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 }