mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
Fix loot table provider not working after 24w09a port (#3630)
This commit is contained in:
parent
d20e1f08cb
commit
fc9addbd3c
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue