mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-14 19:25:23 -05:00
Rename FabricBlockLootTableProvider.registryLookup to stop hiding the protected vanilla field. (#3841)
This commit is contained in:
parent
fe474d6b05
commit
16c4ae257c
1 changed files with 3 additions and 3 deletions
|
@ -49,12 +49,12 @@ import net.fabricmc.fabric.impl.datagen.loot.FabricLootTableProviderImpl;
|
||||||
public abstract class FabricBlockLootTableProvider extends BlockLootTableGenerator implements FabricLootTableProvider {
|
public abstract class FabricBlockLootTableProvider extends BlockLootTableGenerator implements FabricLootTableProvider {
|
||||||
private final FabricDataOutput output;
|
private final FabricDataOutput output;
|
||||||
private final Set<Identifier> excludedFromStrictValidation = new HashSet<>();
|
private final Set<Identifier> excludedFromStrictValidation = new HashSet<>();
|
||||||
private final CompletableFuture<RegistryWrapper.WrapperLookup> registryLookup;
|
private final CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture;
|
||||||
|
|
||||||
protected FabricBlockLootTableProvider(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookup) {
|
protected FabricBlockLootTableProvider(FabricDataOutput dataOutput, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookup) {
|
||||||
super(Collections.emptySet(), FeatureFlags.FEATURE_MANAGER.getFeatureSet(), registryLookup.join());
|
super(Collections.emptySet(), FeatureFlags.FEATURE_MANAGER.getFeatureSet(), registryLookup.join());
|
||||||
this.output = dataOutput;
|
this.output = dataOutput;
|
||||||
this.registryLookup = registryLookup;
|
this.registryLookupFuture = registryLookup;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -111,7 +111,7 @@ public abstract class FabricBlockLootTableProvider extends BlockLootTableGenerat
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public CompletableFuture<?> run(DataWriter writer) {
|
public CompletableFuture<?> run(DataWriter writer) {
|
||||||
return FabricLootTableProviderImpl.run(writer, this, LootContextTypes.BLOCK, output, registryLookup);
|
return FabricLootTableProviderImpl.run(writer, this, LootContextTypes.BLOCK, output, registryLookupFuture);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue