fix: wait until initialised for nameplates

This commit is contained in:
Anna 2021-09-24 15:09:56 -04:00
parent fb88b30c93
commit 004e95ec8a
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ namespace NominaOcculta {
private void OnNamePlateUpdate(NamePlateUpdateEventArgs args) {
// only replace nameplates that have objects in the table
if (!this.Plugin.Config.Enabled || args.ObjectId == 0xE0000000) {
if (!this.Plugin.Config.Enabled || !this.Plugin.NameRepository.Initialised || args.ObjectId == 0xE0000000) {
return;
}