mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
One more fix for the TrackableTypes changes.
This commit is contained in:
@@ -57,6 +57,7 @@ public class TrackableTypes {
|
||||
|
||||
@Override
|
||||
protected void updateObjLookup(Tracker tracker, T newObj) {
|
||||
if (tracker == null) { return; }
|
||||
HashMap<Integer, T> objLookup = getObjLookup(tracker);
|
||||
if (newObj != null && !objLookup.containsKey(newObj.getId())) {
|
||||
objLookup.put(newObj.getId(), newObj);
|
||||
|
||||
Reference in New Issue
Block a user