Added handling for remaining Packets

This commit is contained in:
Tacef Ine
2017-07-01 15:57:41 +02:00
parent daed790e4d
commit a22ed6063d
2 changed files with 58 additions and 3 deletions
+11 -1
View File
@@ -39,8 +39,18 @@ public class TradeSession {
Log.w("Invalid trade item owner for session: %s (initiator=%s, accepter=%s)", self, initiator, accepter);
return self;
}
}
public List<Long> addToInitiatorList(long objectId){
this.initiatorTradeItems.add(objectId);
return this.initiatorTradeItems;
}
public List<Long> addToAccepterList(long objectId){
this.accepterTradeItems.add(objectId);
return this.accepterTradeItems;
}
public List<Long> getFromItemList(CreatureObject creature) {
if(creature.equals(this.accepter)){
return Collections.unmodifiableList(this.initiatorTradeItems);