diff options
| author | syeyoung <cyong06@naver.com> | 2021-02-26 01:13:20 +0900 |
|---|---|---|
| committer | syeyoung <cyong06@naver.com> | 2021-02-26 01:13:20 +0900 |
| commit | 1a1e216a3e58f13a6ecec14c726283943497d119 (patch) | |
| tree | 005359fd3abe7c5f01e21faac7a9a457d08da049 /src/main/java/kr/syeyoung/dungeonsguide/commands | |
| parent | 8649694de48b3860e7e97118262c8b437848d2c8 (diff) | |
| download | Skyblock-Dungeons-Guide-1a1e216a3e58f13a6ecec14c726283943497d119.tar.gz Skyblock-Dungeons-Guide-1a1e216a3e58f13a6ecec14c726283943497d119.tar.bz2 Skyblock-Dungeons-Guide-1a1e216a3e58f13a6ecec14c726283943497d119.zip | |
new text default colors
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/commands')
| -rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java index 29c53b59..b53917ee 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/commands/CommandDungeonsGuide.java @@ -154,6 +154,35 @@ public class CommandDungeonsGuide extends CommandBase { e.printStackTrace(); } } + } else if (args[0].equals("fixmap") && Minecraft.getMinecraft().getSession().getPlayerID().replace("-", "").equals("e686fe0aab804a71ac7011dc8c2b534c")) { + File root = e.getDungeonsGuide().getConfigDir(); + for (File f : root.listFiles()) { + if (!f.getName().endsWith(".roomdata")) continue; + try { + InputStream fis = new FileInputStream(f); + ObjectInputStream ois = new ObjectInputStream(fis); + DungeonRoomInfo dri = (DungeonRoomInfo) ois.readObject(); + ois.close(); + fis.close(); + + for (int i = 0; i < dri.getBlocks().length; i++) { + for (int i1 = 0; i1 < dri.getBlocks()[i].length; i1++) { + if (dri.getBlocks()[i][i1] == 54 || dri.getBlocks()[i][i1] == 146) { + dri.getBlocks()[i][i1] = -1; + System.out.println("Fixed the thing at "+i+" - "+i1 +" on "+dri.getName()); + } + } + } + + FileOutputStream fos = new FileOutputStream(f); + ObjectOutputStream oos = new ObjectOutputStream(fos); + oos.writeObject(dri); + oos.flush(); + oos.close(); + } catch (Exception e) { + e.printStackTrace(); + } + } } else if (args[0].equals("reloaddungeon") && Minecraft.getMinecraft().getSession().getPlayerID().replace("-", "").equals("e686fe0aab804a71ac7011dc8c2b534c")){ try { MinecraftForge.EVENT_BUS.post(new DungeonLeftEvent()); |
