Removed unused multi relation packet usage.

This commit is contained in:
MobiusDevelopment
2022-04-30 22:31:10 +00:00
parent 26b4e465a1
commit 8cdca3e8cf
4 changed files with 21 additions and 74 deletions

View File

@@ -4143,13 +4143,11 @@ public class Player extends Playable
final RelationCache oldrelation = getKnownRelations().get(player.getObjectId());
if ((oldrelation == null) || (oldrelation.getRelation() != relation) || (oldrelation.isAutoAttackable() != isAutoAttackable))
{
final RelationChanged rc = new RelationChanged();
rc.addRelation(this, relation, isAutoAttackable);
player.sendPacket(new RelationChanged(this, relation, isAutoAttackable));
if (hasSummon())
{
player.sendPacket(new RelationChanged(_summon, getRelation(player), isAutoAttackable(player)));
player.sendPacket(new RelationChanged(_summon, relation, isAutoAttackable));
}
player.sendPacket(rc);
getKnownRelations().put(player.getObjectId(), new RelationCache(relation, isAutoAttackable));
}
}