mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fix some tag references and fix diets not loading
This commit is contained in:
parent
eeded18c36
commit
56e91629b1
3 changed files with 15 additions and 15 deletions
|
@ -35,7 +35,7 @@ public class DietsLoader implements IdentifiableResourceReloadListener {
|
|||
|
||||
CompletableFuture<Map<Identifier, Effect>> foodGroupsFuture = CompletableFuture.supplyAsync(() -> {
|
||||
Map<Identifier, Effect> foodGroups = new HashMap<>();
|
||||
for (var group : loadData(manager, prepareExecutor, "diets/food_groups").entrySet()) {
|
||||
for (var group : loadData(manager, prepareExecutor, "diet/food_groups").entrySet()) {
|
||||
try {
|
||||
FoodGroup.CODEC.parse(JsonOps.INSTANCE, group.getValue())
|
||||
.resultOrPartial(error -> LOGGER.error("Could not load food group {}: {}", group.getKey(), error))
|
||||
|
@ -50,7 +50,7 @@ public class DietsLoader implements IdentifiableResourceReloadListener {
|
|||
}, prepareExecutor);
|
||||
CompletableFuture<Map<Race, DietProfile>> profilesFuture = CompletableFuture.supplyAsync(() -> {
|
||||
Map<Race, DietProfile> profiles = new HashMap<>();
|
||||
for (var entry : loadData(manager, prepareExecutor, "diets/races").entrySet()) {
|
||||
for (var entry : loadData(manager, prepareExecutor, "diet/races").entrySet()) {
|
||||
Identifier id = entry.getKey();
|
||||
try {
|
||||
Race.REGISTRY.getOrEmpty(id).ifPresentOrElse(race -> {
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
{
|
||||
"replace": false,
|
||||
"values": [
|
||||
"#unicopia:food_types/forage_dangerous",
|
||||
"#unicopia:food_types/forage_edible_filling",
|
||||
"#unicopia:food_types/forage_edible",
|
||||
"#unicopia:food_types/forage_nauseating",
|
||||
"#unicopia:food_types/forage_blinding",
|
||||
"#unicopia:food_types/forage_prickly",
|
||||
"#unicopia:food_types/forage_radioactive",
|
||||
"#unicopia:food_types/forage_risky",
|
||||
"#unicopia:food_types/forage_severely_nauseating",
|
||||
"#unicopia:food_types/forage_severely_prickly",
|
||||
"#unicopia:food_types/forage_strengthening"
|
||||
"#unicopia:forage/dangerous",
|
||||
"#unicopia:forage/filling",
|
||||
"#unicopia:forage/safe",
|
||||
"#unicopia:forage/nauseating",
|
||||
"#unicopia:forage/blinding",
|
||||
"#unicopia:forage/prickly",
|
||||
"#unicopia:forage/glowing",
|
||||
"#unicopia:forage/risky",
|
||||
"#unicopia:forage/severe/nauseating",
|
||||
"#unicopia:forage/severe/prickly",
|
||||
"#unicopia:forage/strenghtening"
|
||||
]
|
||||
}
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"unicopia:pearl_necklace",
|
||||
"#unicopia:shells",
|
||||
"#unicopia:special_shells",
|
||||
"#unicopia:food_types/raw_sea_vegitable",
|
||||
"#unicopia:food_types/cooked_sea_vegitable"
|
||||
"#unicopia:food_types/low_quality_sea_vegetables",
|
||||
"#unicopia:food_types/high_quality_sea_vegetables"
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue