Fix loot table provider not working after 24w09a port (#3630)

This commit is contained in:
maityyy 2024-03-04 12:43:50 +03:00 committed by GitHub
parent d20e1f08cb
commit fc9addbd3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,7 @@ public final class FabricLootTableProviderImpl {
HashMap<Identifier, LootTable> builders = Maps.newHashMap(); HashMap<Identifier, LootTable> builders = Maps.newHashMap();
HashMap<Identifier, ConditionJsonProvider[]> conditionMap = new HashMap<>(); HashMap<Identifier, ConditionJsonProvider[]> conditionMap = new HashMap<>();
return registryLookup.thenApply(lookup -> { return registryLookup.thenCompose(lookup -> {
provider.accept(lookup, (identifier, builder) -> { provider.accept(lookup, (identifier, builder) -> {
ConditionJsonProvider[] conditions = FabricDataGenHelper.consumeConditions(builder); ConditionJsonProvider[] conditions = FabricDataGenHelper.consumeConditions(builder);
conditionMap.put(identifier, conditions); conditionMap.put(identifier, conditions);