Changeset 5512

This is not a Support area! Discuss about the Server here. Non-Server related discussion goes in Off-Topic Discussion.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
antons007
Posts: 149
Joined: Sat Sep 12, 2009 4:18 pm

Changeset 5512

Post by antons007 »

clientpackets/TradeRequest.java

Code: Select all

 -60                     if (target == null || !player.getKnownList().knowsObject(target) || !(target instanceof L2PcInstance)) +61                 if ((target == null) || !player.getKnownList().knowsObject(target) || ((target.getInstanceId() != player.getInstanceId()) && (player.getInstanceId() != -1)))  
point of this (((target.getInstanceId() != player.getInstanceId()) && (player.getInstanceId() != -1))) if its already here?

Code: Select all

 package com.l2jserver.gameserver.model.actor.knownlist; public class ObjectKnownList{    public boolean addKnownObject(L2Object object)    {        // Instance -1 is for GMs that can see everything on all instances        if (getActiveObject().getInstanceId() != -1 && (object.getInstanceId() != getActiveObject().getInstanceId()))            return false;    }} 
User avatar
Zoey76
L2j Inner Circle
L2j Inner Circle
Posts: 7005
Joined: Tue Aug 11, 2009 3:36 am

Re: Changeset 5512

Post by Zoey76 »

It was there already, I just re-wrote it.

At moment seems useless, but if kown list implementation changes, it could be useful.

If you want you can remove it, also you can share the diff.
Powered by Eclipse 4.30 🌌 | Eclipse Temurin 21 ☕ | MariaDB 11.3.2 🗃️ | L2J Server 2.6.3.0 - High Five 🚀

🔗 Join our Discord! 🎮💬
Post Reply