Improve IPC OnArmatureChanged check
This commit is contained in:
@@ -261,12 +261,10 @@ public partial class CustomizePlusIpc
|
|||||||
//warn: intended limitation - ignores default profiles because why you would use default profile on your own character
|
//warn: intended limitation - ignores default profiles because why you would use default profile on your own character
|
||||||
private void OnArmatureChanged(ArmatureChanged.Type type, Armature armature, object? arg3)
|
private void OnArmatureChanged(ArmatureChanged.Type type, Armature armature, object? arg3)
|
||||||
{
|
{
|
||||||
string currentPlayerName = _gameObjectService.GetCurrentPlayerName();
|
if (!armature.ActorIdentifier.CompareIgnoringOwnership(_gameObjectService.GetCurrentPlayerActorIdentifier()))
|
||||||
|
|
||||||
if (armature.ActorIdentifier.ToNameWithoutOwnerName() != currentPlayerName)
|
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (armature.ActorIdentifier.HomeWorld == WorldId.AnyWorld) //Cutscene/GPose actors
|
if (armature.ActorIdentifier.HomeWorld == WorldId.AnyWorld) //Only Cutscene/GPose actors have world set to AnyWorld
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ICharacter? localPlayerCharacter = (ICharacter?)_gameObjectService.GetDalamudGameObjectFromActor(_gameObjectService.GetLocalPlayerActor());
|
ICharacter? localPlayerCharacter = (ICharacter?)_gameObjectService.GetDalamudGameObjectFromActor(_gameObjectService.GetLocalPlayerActor());
|
||||||
|
|||||||
Reference in New Issue
Block a user