aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-09 12:56:43 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-09 12:56:43 +0900
commitb03a04dc1e11900e9013fd83fe77e7ecbb07019a (patch)
tree208bd6bca2f6a14301bf0c976617fd5c02756b5a /src/main/java/kr/syeyoung/dungeonsguide/dungeon
parentd165e145f7066bd46e2a0b2b0fd0752ba7156cae (diff)
downloadSkyblock-Dungeons-Guide-b03a04dc1e11900e9013fd83fe77e7ecbb07019a.tar.gz
Skyblock-Dungeons-Guide-b03a04dc1e11900e9013fd83fe77e7ecbb07019a.tar.bz2
Skyblock-Dungeons-Guide-b03a04dc1e11900e9013fd83fe77e7ecbb07019a.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.java6
1 files changed, 3 insertions, 3 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 b5bc69ea..f27d1b2f 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/roomfinder/DungeonRoomInfoRegistry.java
@@ -69,10 +69,10 @@ public class DungeonRoomInfoRegistry {
registered.clear();
shapeMap.clear();
uuidMap.clear();
- URL url = new URL("dungeonsguide://"+DungeonsGuideMain.getDungeonsGuideMain().getAuthenticator().getToken()+"@/roomdatas/data.txt");
+ URL url = new URL("dungeonsguide://"+DungeonsGuideMain.getDungeonsGuideMain().getAuthenticator().getToken()+"@/roomdata/datas.txt");
List<String> lines = IOUtils.readLines(url.openConnection().getInputStream());
- for (String name : lines) {
- if (name.endsWith(".roomdata")) continue;
+ for (String name : lines) {
+ if (!name.endsWith(".roomdata")) continue;
try {
InputStream fis = new URL("dungeonsguide://"+DungeonsGuideMain.getDungeonsGuideMain().getAuthenticator().getToken()+"@/"+name).openStream();
ObjectInputStream ois = new ObjectInputStream(fis);