From f6a3ae6948b940d0bcc2deddde37cdf2349cfa46 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Tue, 8 Dec 2020 22:11:33 +0900 Subject: put cap for readin --- .../dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java index 3119311a..2fc225df 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java @@ -68,6 +68,7 @@ public class DungeonRoomInfoRegistry { uuidMap.clear(); Authenticator authenticator = DungeonsGuide.getDungeonsGuide().getAuthenticator(); InputStream inputStream = authenticator.getInputStream("roomdata/datas.txt"); + inputStream.read(new byte[4]); BufferedReader br = new BufferedReader(new InputStreamReader(inputStream)); String name; while ((name = br.readLine()) != null) { @@ -75,6 +76,7 @@ public class DungeonRoomInfoRegistry { if (name.endsWith(".roomdata")) continue; try { InputStream fis = authenticator.getInputStream(name); + fis.read(new byte[4]); ObjectInputStream ois = new ObjectInputStream(fis); DungeonRoomInfo dri = (DungeonRoomInfo) ois.readObject(); ois.close(); -- cgit