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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user