修复删除世界时无法删除 zip 格式世界的问题 (#4500)

This commit is contained in:
Wulian233
2025-09-20 17:14:19 +08:00
committed by GitHub
parent 756b95ca8c
commit dd7703c7a9

View File

@@ -279,7 +279,7 @@ public final class World {
if (isLocked()) {
throw new WorldLockedException("The world " + getFile() + " has been locked");
}
FileUtils.deleteDirectory(file);
FileUtils.forceDelete(file);
}
public CompoundTag readLevelDat() throws IOException {