9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-29 03:39:11 +00:00

2.2.0.4-hotfix

This commit is contained in:
Xiao-MoMi
2023-04-06 17:02:25 +08:00
parent 2813ff6949
commit 5695a63756
2 changed files with 3 additions and 2 deletions

View File

@@ -62,7 +62,8 @@ public class ConfigUtils {
public static YamlConfiguration readData(File file) {
if (!file.exists()) {
try {
if (!file.getParentFile().mkdirs() || !file.createNewFile()) {
file.getParentFile().mkdirs();
if (!file.createNewFile()) {
AdventureUtils.consoleMessage("<red>[CustomNameplates] Failed to generate data files!</red>");
}
} catch (IOException e) {