aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-09 15:11:20 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-09 15:11:20 +0900
commit977adfc6f08216ba240c9c6d207a8ad37554f5d5 (patch)
tree8e5874da48567d847f3a9b923f2578a464e78069 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder
parente3a6c36154d5336e72e5be014c27ce5148f10487 (diff)
downloadSkyblock-Dungeons-Guide-977adfc6f08216ba240c9c6d207a8ad37554f5d5.tar.gz
Skyblock-Dungeons-Guide-977adfc6f08216ba240c9c6d207a8ad37554f5d5.tar.bz2
Skyblock-Dungeons-Guide-977adfc6f08216ba240c9c6d207a8ad37554f5d5.zip
read whole jar maybe
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java4
1 files changed, 2 insertions, 2 deletions
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 b08adbbe..03c2cb07 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java
@@ -69,12 +69,12 @@ public class DungeonRoomInfoRegistry {
registered.clear();
shapeMap.clear();
uuidMap.clear();
- URL url = new URL("dungeonsguide://"+DungeonsGuide.getDungeonsGuide().getAuthenticator().getToken()+"@/roomdata/datas.txt");
+ URL url = new URL("dungeonsguide:///roomdata/datas.txt");
List<String> lines = IOUtils.readLines(url.openConnection().getInputStream());
for (String name : lines) {
if (!name.endsWith(".roomdata")) continue;
try {
- InputStream fis = new URL("dungeonsguide://"+DungeonsGuide.getDungeonsGuide().getAuthenticator().getToken()+"@/"+name).openStream();
+ InputStream fis = new URL("dungeonsguide:///"+name).openStream();
ObjectInputStream ois = new ObjectInputStream(fis);
DungeonRoomInfo dri = (DungeonRoomInfo) ois.readObject();
ois.close();