Skip to content

Commit

Permalink
fix method name change
Browse files Browse the repository at this point in the history
  • Loading branch information
dordsor21 committed Jul 18, 2023
1 parent 2383c55 commit 50a3328
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -619,7 +619,7 @@ public boolean placeFeature(
serverLevel.captureTreeGeneration = true;
serverLevel.captureBlockStates = true;
try {
if (!((ConfiguredFeature<?, ?>) feature.getKey()).place(populator, generator, random, new BlockPos(x, y, z))) {
if (!((ConfiguredFeature<?, ?>) feature.getConfiguredFeature()).place(populator, generator, random, new BlockPos(x, y, z))) {
return null;
}
return populator.getList().stream().collect(Collectors.toMap(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ public boolean placeFeature(
.registryAccess()
.registryOrThrow(Registry.CONFIGURED_FEATURE_REGISTRY);
Holder<ConfiguredFeature<?, ?>> holder = registry
.getHolder((ResourceKey<ConfiguredFeature<?, ?>>) feature.getKey())
.getHolder((ResourceKey<ConfiguredFeature<?, ?>>) feature.getConfiguredFeature())
.orElse(null);
if (holder == null) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public boolean placeFeature(

Registry<ConfiguredFeature<?, ?>> registry = serverLevel.registryAccess().registryOrThrow(Registries.CONFIGURED_FEATURE);
Holder<ConfiguredFeature<?, ?>> holder = registry
.getHolder((ResourceKey<ConfiguredFeature<?, ?>>) feature.getKey())
.getHolder((ResourceKey<ConfiguredFeature<?, ?>>) feature.getConfiguredFeature())
.orElse(null);
if (holder == null) {
return false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ public boolean placeFeature(

Registry<ConfiguredFeature<?, ?>> registry = serverLevel.registryAccess().registryOrThrow(Registries.CONFIGURED_FEATURE);
Holder<ConfiguredFeature<?, ?>> holder = registry
.getHolder((ResourceKey<ConfiguredFeature<?, ?>>) feature.getKey())
.getHolder((ResourceKey<ConfiguredFeature<?, ?>>) feature.getConfiguredFeature())
.orElse(null);
if (holder == null) {
return false;
Expand Down

0 comments on commit 50a3328

Please sign in to comment.