9
0
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:
Vinely
2023-03-30 18:45:13 +03:00
committed by GitHub
parent 90b806d60b
commit 44665fb464

View File

@@ -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 {
}
}
}
}
}