Skip to content

Commit 387baec

Browse files
committed
close #8
1 parent 263b35b commit 387baec

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/org/prank/MainFrame.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ private long getSeed() {
147147
private void exportJM() {
148148
if (result.isEmpty())
149149
calculate();
150-
File waypoints = new File("waypoints");
150+
File waypoints = new File("./waypoints");
151151
if (!waypoints.exists()) waypoints.mkdir();
152152
result.forEach(this::writeJMWayPoint);
153153
}
@@ -160,7 +160,7 @@ private void writeJMWayPoint(Coord coord, String name) {
160160

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

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

212-
try (FileWriter file = new FileWriter("mapwriter.cfg", false)) {
212+
try (FileWriter file = new FileWriter("./mapwriter.cfg", false)) {
213213
file.write(fileBuilder.toString());
214214
} catch (Exception e) {
215215
e.printStackTrace();

0 commit comments

Comments
 (0)