Small format fix

This commit is contained in:
paulevsGitch 2021-12-09 12:10:31 +03:00
parent 9bcd3e6a56
commit 2f680d4c13

View file

@ -58,16 +58,14 @@ public class BCLStructureFeature {
* @param <C> The FeatureConfiguration of the Context * @param <C> The FeatureConfiguration of the Context
* @return true, if this feature can spawn in the current biome * @return true, if this feature can spawn in the current biome
*/ */
public static <C extends FeatureConfiguration> boolean isValidBiome(PieceGeneratorSupplier.Context<C> context, int yPos) { public static <C extends FeatureConfiguration> boolean isValidBiome(PieceGeneratorSupplier.Context<C> context, int yPos) {
BlockPos blockPos = context.chunkPos().getMiddleBlockPosition(yPos); BlockPos blockPos = context.chunkPos().getMiddleBlockPosition(yPos);
return context.validBiome().test(
context.chunkGenerator().getNoiseBiome(QuartPos.fromBlock(blockPos.getX()), QuartPos.fromBlock(blockPos.getY()), QuartPos.fromBlock(blockPos.getZ()))
);
}
return public StructureFeature<NoneFeatureConfiguration> getStructure() {
context.validBiome().test(
context.chunkGenerator().getNoiseBiome(QuartPos.fromBlock(blockPos.getX()), QuartPos.fromBlock(blockPos.getY()), QuartPos.fromBlock(blockPos.getZ()))
);
}
public StructureFeature<NoneFeatureConfiguration> getStructure() {
return structure; return structure;
} }