mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 17:58:01 +00:00
Fix edition mapping
This commit is contained in:
@@ -840,7 +840,7 @@ public final class CardEdition implements Comparable<CardEdition> {
|
|||||||
@Override
|
@Override
|
||||||
public void add(CardEdition item) { //Even though we want it to be read only, make an exception for custom content.
|
public void add(CardEdition item) { //Even though we want it to be read only, make an exception for custom content.
|
||||||
if(lock) throw new UnsupportedOperationException("This is a read-only storage");
|
if(lock) throw new UnsupportedOperationException("This is a read-only storage");
|
||||||
else map.put(item.getName(), item);
|
else map.put(item.getCode(), item);
|
||||||
}
|
}
|
||||||
public void append(CardEdition.Collection C){ //Append custom editions
|
public void append(CardEdition.Collection C){ //Append custom editions
|
||||||
if (lock) throw new UnsupportedOperationException("This is a read-only storage");
|
if (lock) throw new UnsupportedOperationException("This is a read-only storage");
|
||||||
|
|||||||
Reference in New Issue
Block a user