mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 18:49:39 +00:00
Full Screen Directory Mode for Cloner Tab Handling
This commit is contained in:
1 parent
65e29e42dd
commit
a325c5c618
16 files changed
+826
-621
No files matched your search
@@ -27,10 +27,6 @@ public class CloneFolder {
|
||||
return compound;
|
||||
}
|
||||
|
||||
public String getDirName() {
|
||||
return "folder_" + name;
|
||||
}
|
||||
|
||||
public static boolean isValidName(String name) {
|
||||
if (name == null || name.isEmpty()) {
|
||||
return false;
|
||||
@@ -41,6 +37,12 @@ public class CloneFolder {
|
||||
if (!name.equals(name.trim())) {
|
||||
return false;
|
||||
}
|
||||
if (name.equals(".") || name.equals("..")) {
|
||||
return false;
|
||||
}
|
||||
if (name.startsWith("___")) {
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
Integer.parseInt(name);
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user