Rename hasSentAvatarDataNotify() to hasSentLoginPackets()

This commit is contained in:
Melledy
2022-07-21 16:27:43 -07:00
parent b505b0825a
commit 8651cdd12b
3 changed files with 10 additions and 14 deletions

View File

@@ -496,7 +496,7 @@ public class Avatar {
item.setEquipCharacter(this.getAvatarId());
item.save();
if (this.getPlayer().hasSentAvatarDataNotify()) {
if (this.getPlayer().hasSentLoginPackets()) {
this.getPlayer().sendPacket(new PacketAvatarEquipChangeNotify(this, item));
}
@@ -732,7 +732,7 @@ public class Avatar {
this.setFightProperty(FightProperty.FIGHT_PROP_CUR_HP, this.getFightProperty(FightProperty.FIGHT_PROP_MAX_HP) * hpPercent);
// Packet
if (getPlayer() != null && getPlayer().hasSentAvatarDataNotify()) {
if (getPlayer() != null && getPlayer().hasSentLoginPackets()) {
// Update stats for client
getPlayer().sendPacket(new PacketAvatarFightPropNotify(this));
// Update client abilities