diff --git a/patches/server/1079-SW-Remove-Symlink-Check.patch b/patches/server/1079-SW-Remove-Symlink-Check.patch new file mode 100644 index 0000000000..a80e8519ea --- /dev/null +++ b/patches/server/1079-SW-Remove-Symlink-Check.patch @@ -0,0 +1,19 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Chaoscaot +Date: Sun, 1 Dec 2024 23:04:50 +0100 +Subject: [PATCH] SW Remove Symlink Check + + +diff --git a/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java b/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java +index 7cbfc8c4fc3fd4deecacb7a4243ec90efaf40809..10c05e418ea1045215ecf5fe807d29282e4df0a6 100644 +--- a/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java ++++ b/src/main/java/net/minecraft/world/level/storage/LevelStorageSource.java +@@ -420,7 +420,7 @@ public class LevelStorageSource { + + public LevelStorageSource.LevelStorageAccess validateAndCreateAccess(String s, ResourceKey dimensionType) throws IOException, ContentValidationException { // CraftBukkit + Path path = this.getLevelPath(s); +- List list = Boolean.getBoolean("paper.disableWorldSymlinkValidation") ? List.of() : this.worldDirValidator.validateDirectory(path, true); // Paper - add skipping of symlinks scan ++ List list = List.of(); // Paper - add skipping of symlinks scan // Fuck this shit + + if (!list.isEmpty()) { + throw new ContentValidationException(path, list);