geforkt von Mirrors/FastAsyncWorldEdit
Improve zip file recognition.
Look for world/level.dat because some zip file generators do not include entries for directories by themselves.
Dieser Commit ist enthalten in:
Ursprung
05125c496e
Commit
72b2c90c19
@ -132,7 +132,8 @@ public class Snapshot implements Comparable<Snapshot> {
|
|||||||
try {
|
try {
|
||||||
if (file.getName().toLowerCase().endsWith(".zip")) {
|
if (file.getName().toLowerCase().endsWith(".zip")) {
|
||||||
ZipFile entry = new ZipFile(file);
|
ZipFile entry = new ZipFile(file);
|
||||||
return entry.getEntry(worldname) != null;
|
return (entry.getEntry(worldname) != null
|
||||||
|
|| entry.getEntry(worldname + "/level.dat") != null);
|
||||||
} else if (file.getName().toLowerCase().endsWith(".tar.bz2")
|
} else if (file.getName().toLowerCase().endsWith(".tar.bz2")
|
||||||
|| file.getName().toLowerCase().endsWith(".tar.gz")
|
|| file.getName().toLowerCase().endsWith(".tar.gz")
|
||||||
|| file.getName().toLowerCase().endsWith(".tar")) {
|
|| file.getName().toLowerCase().endsWith(".tar")) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren