diff --git a/src/main/java/ru/betterend/config/Configs.java b/src/main/java/ru/betterend/config/Configs.java index 09fcca40..37019a83 100644 --- a/src/main/java/ru/betterend/config/Configs.java +++ b/src/main/java/ru/betterend/config/Configs.java @@ -1,19 +1,23 @@ package ru.betterend.config; public class Configs { - public static final IdConfig ITEM_CONFIG = new IdConfig("items", (item, category) -> { - return new ConfigKey(item.getNamespace(), category, item.getPath()); + public static final IdConfig ITEM_CONFIG = new IdConfig("items", (itemId, category) -> { + return new ConfigKey(itemId.getNamespace(), category, itemId.getPath()); }); - public static final IdConfig BLOCK_CONFIG = new IdConfig("blocks", (block, category) -> { - return new ConfigKey(block.getNamespace(), category, block.getPath()); + public static final IdConfig BLOCK_CONFIG = new IdConfig("blocks", (blockId, category) -> { + return new ConfigKey(blockId.getNamespace(), category, blockId.getPath()); }); - public static final IdConfig BIOME_CONFIG = new IdConfig("biomes", (biome, entry) -> { - return new ConfigKey(biome.getNamespace(), biome.getPath(), entry); + public static final IdConfig BIOME_CONFIG = new IdConfig("biomes", (biomeId, entry) -> { + return new ConfigKey(biomeId.getNamespace(), biomeId.getPath(), entry); + }); + public static final IdConfig ENTITY_CONFIG = new IdConfig("entities", (entityId, category) -> { + return new ConfigKey(entityId.getNamespace(), category, entityId.getPath()); }); public static void saveConfigs() { ITEM_CONFIG.saveChanges(); BLOCK_CONFIG.saveChanges(); BIOME_CONFIG.saveChanges(); + ENTITY_CONFIG.saveChanges(); } }