Fix so player 2 can start a network game

This commit is contained in:
drdev
2015-07-19 00:50:04 +00:00
parent c75a63305d
commit 5ac766a542
3 changed files with 27 additions and 8 deletions

View File

@@ -40,6 +40,16 @@ public class TrackableTypes {
private TrackableObjectType() {
}
public T lookup(T from) {
if (from == null) { return null; }
T to = objLookup.get(from.getId());
if (to == null) {
objLookup.put(from.getId(), from);
return from;
}
return to;
}
public void clearLookupDictionary() {
objLookup.clear();
}