matching table now stores the correct ip of the hosts
#story[1188]
This commit is contained in:
@@ -17,9 +17,9 @@ public class MatchTable {
|
||||
this.matchTable = new HashMap<TableKey, List>();
|
||||
}
|
||||
|
||||
public void addEntry(HostGame newEntry) {
|
||||
public void addEntry(String ip, int port, HostGame newEntry) {
|
||||
//create a key from the ip and port
|
||||
TableKey entryKey = new TableKey( newEntry.getIp(), newEntry.getPort());
|
||||
TableKey entryKey = new TableKey(ip, port);
|
||||
|
||||
//get the rest of the entry and use it as the value
|
||||
List entryItems = new ArrayList();
|
||||
|
||||
Reference in New Issue
Block a user