upgrade card not found for remove from warning to runtime exception
parent
264d1abee6
commit
8da7efe02c
|
@ -103,7 +103,7 @@ public class MagicCardList extends ArrayList<MagicCard> implements MagicCopyable
|
|||
if (index >= 0) {
|
||||
remove(index);
|
||||
} else {
|
||||
System.err.println("WARNING. Card " + card.getName() + " not found.");
|
||||
throw new RuntimeException("Card " + card.getName() + " not found.");
|
||||
}
|
||||
return index;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue