Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-25 10:30:04 +01:00
Merge pull request #9 from IronApollo/master
Fixes some schematic files not being found with proper input
Dieser Commit ist enthalten in:
Commit
9aaa77094e
@ -354,11 +354,21 @@ public enum ClipboardFormat {
|
|||||||
dir = new File(dir + "." + getExtension());
|
dir = new File(dir + "." + getExtension());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if(!dir.exists()) {
|
||||||
|
for(ClipboardFormat format : values) {
|
||||||
|
if(new File(working, (Settings.IMP.PATHS.PER_PLAYER_SCHEMATICS ? (player.getUniqueId().toString() + File.separator) : "") + input + "." + format.getExtension()).exists()) {
|
||||||
|
return format.loadAllFromInput(player, input, message);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
if (!dir.exists()) {
|
if (!dir.exists()) {
|
||||||
if (message) BBC.SCHEMATIC_NOT_FOUND.send(player, input);
|
if (message) BBC.SCHEMATIC_NOT_FOUND.send(player, input);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (!dir.isDirectory()) {
|
if (!dir.isDirectory()) {
|
||||||
|
if(!findByFile(dir).getExtension().equals(getExtension())) {
|
||||||
|
return findByFile(dir).loadAllFromInput(player, input, message);
|
||||||
|
}
|
||||||
ByteSource source = Files.asByteSource(dir);
|
ByteSource source = Files.asByteSource(dir);
|
||||||
URI uri = dir.toURI();
|
URI uri = dir.toURI();
|
||||||
return new MultiClipboardHolder(uri, new LazyClipboardHolder(dir.toURI(), source, this, null));
|
return new MultiClipboardHolder(uri, new LazyClipboardHolder(dir.toURI(), source, this, null));
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren