Skip to content

Commit 678acdb

Browse files
authored
Update MapCommand.java
1 parent 6ef866b commit 678acdb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/net/earthcomputer/clientcommands/command/MapCommand.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ private static int exportMap(FabricClientCommandSource source, int upscale) thro
7373
}
7474
}
7575
}
76-
File screenshotDir = new File(MinecraftClient.getInstance().runDirectory, "screenshots");
76+
File screenshotDir = new File(source.getClient().runDirectory, "screenshots");
7777
screenshotDir.mkdirs();
7878
File file = ScreenshotRecorder.getScreenshotFilename(screenshotDir);
7979

0 commit comments

Comments
 (0)