9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2026-01-03 14:22:25 +00:00

修复一个未relocate问题

This commit is contained in:
XiaoMoMi
2025-07-11 17:44:12 +08:00
parent 7b8e2c641a
commit d3bbacbe84
5 changed files with 10 additions and 0 deletions

View File

@@ -98,6 +98,7 @@ tasks {
relocate("com.ezylang.evalex", "net.momirealms.craftengine.libraries.evalex")
relocate("com.google.common.jimfs", "net.momirealms.craftengine.libraries.jimfs")
relocate("org.apache.commons", "net.momirealms.craftengine.libraries.commons")
relocate("io.leangen.geantyref", "net.momirealms.craftengine.libraries.geantyref")
}
}

View File

@@ -129,6 +129,7 @@ public class Config {
protected boolean recipe$enable;
protected boolean recipe$disable_vanilla_recipes$all;
protected Set<Key> recipe$disable_vanilla_recipes$list;
protected List<String> recipe$ingredient_sources;
protected boolean image$illegal_characters_filter$command;
protected boolean image$illegal_characters_filter$chat;
@@ -370,6 +371,7 @@ public class Config {
recipe$enable = config.getBoolean("recipe.enable", true);
recipe$disable_vanilla_recipes$all = config.getBoolean("recipe.disable-vanilla-recipes.all", false);
recipe$disable_vanilla_recipes$list = config.getStringList("recipe.disable-vanilla-recipes.list").stream().map(Key::of).collect(Collectors.toSet());
recipe$ingredient_sources = config.getStringList("recipe.ingredient-sources");
// image
image$illegal_characters_filter$anvil = config.getBoolean("image.illegal-characters-filter.anvil", true);
@@ -820,6 +822,10 @@ public class Config {
return instance.item$client_bound_model;
}
public static List<String> recipeIngredientSources() {
return instance.recipe$ingredient_sources;
}
public YamlDocument loadOrCreateYamlData(String fileName) {
Path path = this.plugin.dataFolderPath().resolve(fileName);
if (!Files.exists(path)) {