Move the extra appearance packet guard to SetAppearance

This commit is contained in:
Michael Cook (mackal)
2015-05-18 00:04:55 -04:00
parent 79a87fac1d
commit 553b7c9f8c
3 changed files with 7 additions and 12 deletions
+2
View File
@@ -2027,6 +2027,8 @@ const int32& Mob::SetMana(int32 amount)
void Mob::SetAppearance(EmuAppearance app, bool iIgnoreSelf) {
if (_appearance == app)
return;
_appearance = app;
SendAppearancePacket(AT_Anim, GetAppearanceValue(app), true, iIgnoreSelf);
if (this->IsClient() && this->IsAIControlled())