only handle player nameplates

This commit is contained in:
2024-07-11 15:07:24 +02:00
committed by Pascal
parent b356138732
commit ffa9f8497a

View File

@@ -55,6 +55,10 @@ public class NameplateTagTargetFeature : TagTargetFeature
foreach (var handler in handlers)
{
// Only handle player nameplates
if (handler.NamePlateKind != NamePlateKind.PlayerCharacter || handler.PlayerCharacter == null)
continue;
var beforeTitleBytes = handler.InfoView.Title.Encode();
var generalOptions = pluginConfiguration.GeneralOptions[ActivityContextManager.CurrentActivityContext.ActivityType];