Skip to content

Commit

Permalink
Fix shape field in shape worldgen feature config
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugman76 authored Jan 21, 2023
1 parent 629e2ba commit 98f5ac0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

public record ShapeFeatureConfig(ConfiguredShape shape, BlockStateProvider state, FloatProvider yOffset) implements FeatureConfig {
public static final Codec<ShapeFeatureConfig> CODEC = RecordCodecBuilder.create((instance) -> instance.group(
DawnRegistries.CONFIGURED_SHAPE.getEntryCodec().fieldOf("processors").forGetter((config) -> config.shape),
DawnRegistries.CONFIGURED_SHAPE.getEntryCodec().fieldOf("shape").forGetter((config) -> config.shape),
BlockStateProvider.TYPE_CODEC.fieldOf("state").forGetter((config) -> config.state),
FloatProvider.VALUE_CODEC.fieldOf("y_offset").orElse(ConstantFloatProvider.create(0.0F)).forGetter((config) -> config.yOffset)
).apply(instance, ShapeFeatureConfig::new));
}
}

0 comments on commit 98f5ac0

Please # to comment.