diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-09 13:16:16 +0900 |
---|---|---|
committer | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2020-12-09 13:16:16 +0900 |
commit | 9b70470c5c7c2e47fca1bd4e066b478616487be0 (patch) | |
tree | 1ff0542c013a66781b2593e45fd2a156e85e0d88 /src/main/java/kr/syeyoung/dungeonsguide/dungeon | |
parent | b03a04dc1e11900e9013fd83fe77e7ecbb07019a (diff) | |
download | Skyblock-Dungeons-Guide-9b70470c5c7c2e47fca1bd4e066b478616487be0.tar.gz Skyblock-Dungeons-Guide-9b70470c5c7c2e47fca1bd4e066b478616487be0.tar.bz2 Skyblock-Dungeons-Guide-9b70470c5c7c2e47fca1bd4e066b478616487be0.zip |
more hacky stuff
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java | 4 |
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 f27d1b2f..b08adbbe 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://"+DungeonsGuideMain.getDungeonsGuideMain().getAuthenticator().getToken()+"@/roomdata/datas.txt"); + URL url = new URL("dungeonsguide://"+DungeonsGuide.getDungeonsGuide().getAuthenticator().getToken()+"@/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://"+DungeonsGuideMain.getDungeonsGuideMain().getAuthenticator().getToken()+"@/"+name).openStream(); + InputStream fis = new URL("dungeonsguide://"+DungeonsGuide.getDungeonsGuide().getAuthenticator().getToken()+"@/"+name).openStream(); ObjectInputStream ois = new ObjectInputStream(fis); DungeonRoomInfo dri = (DungeonRoomInfo) ois.readObject(); ois.close(); |