mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fix so player 2 can start a network game
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user