3D biomes
This commit is contained in:
@@ -46,7 +46,7 @@ export interface FeatureJson {
|
||||
type: string;
|
||||
config?: Record<string, unknown>;
|
||||
placement?: PlacementJson[];
|
||||
// only where the column is one of these biomes
|
||||
// only where the biome at the position is one of these
|
||||
biomes?: string | string[];
|
||||
step?: FeatureStep;
|
||||
}
|
||||
@@ -233,7 +233,8 @@ export function compile_feature(
|
||||
for (const position of positions) {
|
||||
if (
|
||||
biomes &&
|
||||
!(inside(chunk, position.x, position.z) && biomes.has(chunk.biome_at(position.x, position.z)))
|
||||
!(inside(chunk, position.x, position.z) &&
|
||||
biomes.has(chunk.biome_at(position.x, position.y, position.z)))
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user