Reverted portions of last patch, should zone in successfully

This commit is contained in:
Obique
2015-01-09 12:56:44 -06:00
committed by Obique
parent b3f8d5f33e
commit 33361539cb
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -174,7 +174,7 @@ public class ObjectManager extends Manager {
double y = location.getZ();
QuadTree<SWGObject> tree = quadTree.get(location.getTerrain());
for (SWGObject inRange : tree.getWithinRange(x, y, AWARE_RANGE)) {
if (inRange.getOwner() != null) {
if (inRange.getOwner() != null && inRange.getObjectId() != obj.getObjectId()) {
updatedAware.add(inRange.getOwner());
}
}
@@ -227,6 +227,7 @@ public class ObjectManager extends Manager {
// player.getCreatureObject().createObject(player);
CreatureObject creature = (CreatureObject) player.getCreatureObject();
player.sendPacket(new UpdatePvpStatusMessage(creature.getPvpType(), creature.getPvpFactionId(), creature.getObjectId()));
creature.createObject(player);
creature.clearAware();
moveObject(null, creature, creature.getLocation(), creature.getLocation());
updateAwarenessForObject(creature);