Skip to content

Commit

Permalink
close #8
Browse files Browse the repository at this point in the history
  • Loading branch information
Techlone committed Jun 6, 2021
1 parent 263b35b commit 387baec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/org/prank/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ private long getSeed() {
private void exportJM() {
if (result.isEmpty())
calculate();
File waypoints = new File("waypoints");
File waypoints = new File("./waypoints");
if (!waypoints.exists()) waypoints.mkdir();
result.forEach(this::writeJMWayPoint);
}
Expand All @@ -160,7 +160,7 @@ private void writeJMWayPoint(Coord coord, String name) {

String upName = name.substring(0, 1).toUpperCase() + name.substring(1);
String wpName = upName + "_" + x + "," + y + "," + z;
String fileName = "waypoints/" + wpName + "." + getCurrentDimID() + ".json";
String fileName = "./waypoints/" + wpName + "." + getCurrentDimID() + ".json";

// Stretch coords if nether dimension due to JourneyMap squeezing
if (getCurrentDimID() == -1) {
Expand Down Expand Up @@ -209,7 +209,7 @@ private void exportMW() {
.append("\tS:visibleGroup=all\n}\n");
// .append("world {\n\tI:dimensionList <\n\t\t").append(getCurrentDimID()).append("\n\t>\n}");

try (FileWriter file = new FileWriter("mapwriter.cfg", false)) {
try (FileWriter file = new FileWriter("./mapwriter.cfg", false)) {
file.write(fileBuilder.toString());
} catch (Exception e) {
e.printStackTrace();
Expand Down

0 comments on commit 387baec

Please sign in to comment.