fixed an issue causing client to crash

This commit is contained in:
Tahir Akhlaq 2017-07-01 02:52:05 +01:00
parent e56238a10c
commit 100f3ae156
2 changed files with 3 additions and 3 deletions

View File

@ -152,8 +152,8 @@ namespace FFXIVClassic_Map_Server.Actors
isStatic = true;
else
{
charaWork.property[2] = 1;
npcWork.hateType = 1;
//charaWork.property[2] = 1;
//npcWork.hateType = 1;
}
if (lParams == null)

View File

@ -136,7 +136,7 @@ namespace FFXIVClassic_Map_Server.dataobjects
{
//Don't send for static characters (npcs)
// todo: this is retarded, need actual mob class
if (actor is Character && !actor.hasMoved)
if (actor is Character && ((Character)actor).isStatic)
continue;
var packet = actor.CreatePositionUpdatePacket(playerActor.actorId);