Fixed My Cards not showing up due to a missed resource stream
This commit is contained in:
@@ -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));
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user