geforkt von Mirrors/Paper
Dieser Commit ist enthalten in:
Ursprung
f4d801650e
Commit
253b07f112
19
patches/server/1079-SW-Remove-Symlink-Check.patch
Normale Datei
19
patches/server/1079-SW-Remove-Symlink-Check.patch
Normale Datei
@ -0,0 +1,19 @@
|
|||||||
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Chaoscaot <chaos@chaoscaot.de>
|
||||||
|
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<LevelStem> dimensionType) throws IOException, ContentValidationException { // CraftBukkit
|
||||||
|
Path path = this.getLevelPath(s);
|
||||||
|
- List<ForbiddenSymlinkInfo> list = Boolean.getBoolean("paper.disableWorldSymlinkValidation") ? List.of() : this.worldDirValidator.validateDirectory(path, true); // Paper - add skipping of symlinks scan
|
||||||
|
+ List<ForbiddenSymlinkInfo> list = List.of(); // Paper - add skipping of symlinks scan // Fuck this shit
|
||||||
|
|
||||||
|
if (!list.isEmpty()) {
|
||||||
|
throw new ContentValidationException(path, list);
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren