Fixed My Cards not showing up due to a missed resource stream

This commit is contained in:
Christian 'ketura' McCarty
2022-09-01 02:49:06 -05:00
parent bb805da0cf
commit db40007d1e
2 changed files with 3 additions and 2 deletions

View File

@@ -124,7 +124,7 @@ public class CollectionSerializer {
String line;
while ((line = cardReader.readLine()) != null) {
if (!line.substring(0, setId.length()).equals(setId))
if (!line.startsWith(setId))
throw new IllegalStateException("Seems the rarity is for some other set");
// Normal
_singleByteCountItems.add(translateToBlueprintId(line));

View File

@@ -1,5 +1,6 @@
package com.gempukku.lotro.packs;
import com.gempukku.lotro.common.AppConfig;
import com.gempukku.lotro.game.CardCollection;
import java.io.BufferedReader;
@@ -14,7 +15,7 @@ public class FixedPackBox implements PackBox {
private final Map<String, Integer> _contents = new LinkedHashMap<>();
public FixedPackBox(String packName) throws IOException {
try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(FixedPackBox.class.getResourceAsStream("/" + packName + ".pack")))) {
try (BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(AppConfig.getResourceStream("product/" + packName + ".pack")))) {
String line;
while ((line = bufferedReader.readLine()) != null) {
line = line.trim();