Attempt to fix an error with weirdly named plugin folders
This commit is contained in:
parent
3c650ffac2
commit
1ffe9c3d12
@ -149,7 +149,13 @@ public class LibsPremium {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static void doSecondaryCheck(String version) {
|
private static void doSecondaryCheck(String version) {
|
||||||
File[] files = new File("plugins/LibsDisguises/").listFiles();
|
File pluginDir = new File("plugins/LibsDisguises/");
|
||||||
|
|
||||||
|
if (!pluginDir.exists() && LibsDisguises.getInstance() != null) {
|
||||||
|
pluginDir = LibsDisguises.getInstance().getDataFolder();
|
||||||
|
}
|
||||||
|
|
||||||
|
File[] files = pluginDir.listFiles();
|
||||||
boolean foundJar = false;
|
boolean foundJar = false;
|
||||||
|
|
||||||
if (files == null) {
|
if (files == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user