Advertisement
Guest User

ValidateLocation to others targets only

a guest
May 1st, 2017
529
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.31 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2jFrozen_GameServer
  3. Index: head-src/com/l2jfrozen/gameserver/model/L2Character.java
  4. ===================================================================
  5. --- head-src/com/l2jfrozen/gameserver/model/L2Character.java    (revision 32)
  6. +++ head-src/com/l2jfrozen/gameserver/model/L2Character.java    (working copy)
  7. @@ -9374,8 +9374,11 @@
  8.        
  9.         if (target instanceof L2Character)
  10.         {
  11. -           ((L2Character) target).sendPacket(new ValidateLocation(this));
  12. -           this.sendPacket(new ValidateLocation(((L2Character) target)));
  13. +           if (target != this)
  14. +           {
  15. +               ((L2Character) target).sendPacket(new ValidateLocation(this));
  16. +               this.sendPacket(new ValidateLocation(((L2Character) target)));
  17. +           }
  18.            
  19.             L2Character target1 = (L2Character) target;
  20.             angleChar = Util.calculateAngleFrom(target1, this);
  21. @@ -9457,8 +9460,11 @@
  22.        
  23.         if (target instanceof L2Character)
  24.         {
  25. -           ((L2Character) target).sendPacket(new ValidateLocation(this));
  26. -           this.sendPacket(new ValidateLocation(((L2Character) target)));
  27. +           if (target != this)
  28. +           {
  29. +               ((L2Character) target).sendPacket(new ValidateLocation(this));
  30. +               this.sendPacket(new ValidateLocation(((L2Character) target)));
  31. +           }
  32.            
  33.             L2Character target1 = (L2Character) target;
  34.             angleChar = Util.calculateAngleFrom(target1, this);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement