From 670bf1fd648ad3280557f083fb15623f4fef251c Mon Sep 17 00:00:00 2001 From: Aleksey Date: Sat, 28 Nov 2020 15:46:56 +0300 Subject: [PATCH] Update ItemConfig.java --- src/main/java/ru/betterend/config/ItemConfig.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/ru/betterend/config/ItemConfig.java b/src/main/java/ru/betterend/config/ItemConfig.java index 1a90ed96..d60bfe83 100644 --- a/src/main/java/ru/betterend/config/ItemConfig.java +++ b/src/main/java/ru/betterend/config/ItemConfig.java @@ -21,12 +21,6 @@ public class ItemConfig extends Config { } } - private ConfigKey createKey(Identifier item, String category) { - Identifier groupId = new Identifier(group, item.getNamespace()); - Identifier categoryId = new Identifier(category, item.getPath()); - return new ConfigKey(groupId, categoryId); - } - @Override protected void registerEntries() {} @@ -36,6 +30,12 @@ public class ItemConfig extends Config { this.writer.save(); } + private ConfigKey createKey(Identifier item, String category) { + Identifier groupId = new Identifier(group, item.getNamespace()); + Identifier categoryId = new Identifier(category, item.getPath()); + return new ConfigKey(groupId, categoryId); + } + @Nullable public > E getEntry(Identifier item, String category) { return this.getEntry(createKey(item, category));