mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2026-01-06 15:42:00 +00:00
Removed a useless folder in ItemsAdder/contents
Before this fix, the plugin created an extra folder. It looked like this: ItemsAdder/contents/contents/nameplates. Because of this, Itemsadder did not read the folder and the Resource Pack did not work.
This commit is contained in:
@@ -299,7 +299,7 @@ public class ResourceManager {
|
||||
private void hookCopy(File resourcePack_folder) {
|
||||
if (ConfigManager.itemsAdderHook){
|
||||
try {
|
||||
FileUtils.copyDirectory(resourcePack_folder, new File(Objects.requireNonNull(Bukkit.getPluginManager().getPlugin("ItemsAdder")).getDataFolder() + File.separator + "contents" + File.separator + "contents/nameplates" + File.separator + "resourcepack") );
|
||||
FileUtils.copyDirectory(resourcePack_folder, new File(Objects.requireNonNull(Bukkit.getPluginManager().getPlugin("ItemsAdder")).getDataFolder() + File.separator + "contents" + File.separator + "nameplates" + File.separator + "resourcepack") );
|
||||
}
|
||||
catch (IOException e){
|
||||
e.printStackTrace();
|
||||
@@ -316,4 +316,4 @@ public class ResourceManager {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user