Workaround Java breaking with symlinks (fixes #660)

This commit is contained in:
Jonas Herzig
2022-02-28 15:57:35 +01:00
parent abfb3d46f3
commit 6cc370a117
5 changed files with 21 additions and 7 deletions

View File

@@ -285,7 +285,6 @@ public class PacketListener extends ChannelInboundHandlerAdapter {
for (int i = 1; Files.exists(rawPath); i++) {
rawPath = rawPath.resolveSibling(replayName + "." + i + ".mcpr");
}
Files.createDirectories(rawPath.getParent());
replayFile.saveTo(rawPath.toFile());
replayFile.close();