@@ -37,12 +37,13 @@ private static int sampleAll(CustomClientCommandSource source) throws CommandSyn
3737 throw CommandExceptions .INVALID_DIMENSION_EXCEPTION .create ();
3838 }
3939 int version = source .getVersion ();
40+ int generatorFlags = source .getGeneratorFlags ();
4041
4142 BlockPos pos = BlockPos .containing (source .getPosition ());
4243
4344 try (Arena arena = Arena .ofConfined ()) {
4445 MemorySegment params = TerrainNoiseParameters .allocate (arena );
45- if (Cubiomes .initTerrainNoise (params , seed .seed (), version ) == 0 ) {
46+ if (Cubiomes .initTerrainNoise (params , seed .seed (), version , generatorFlags & Cubiomes . LARGE_BIOMES () ) == 0 ) {
4647 throw CommandExceptions .INCOMPATIBLE_PARAMETERS_EXCEPTION .create ();
4748 }
4849
@@ -62,12 +63,13 @@ private static int sampleDensity(CustomClientCommandSource source, DensityFuncti
6263 throw CommandExceptions .INVALID_DIMENSION_EXCEPTION .create ();
6364 }
6465 int version = source .getVersion ();
66+ int generatorFlags = source .getGeneratorFlags ();
6567
6668 BlockPos pos = BlockPos .containing (source .getPosition ());
6769
6870 try (Arena arena = Arena .ofConfined ()) {
6971 MemorySegment params = TerrainNoiseParameters .allocate (arena );
70- Cubiomes .initTerrainNoise (params , seed .seed (), version );
72+ Cubiomes .initTerrainNoise (params , seed .seed (), version , generatorFlags & Cubiomes . LARGE_BIOMES () );
7173 double density = densityFunction .compute (params , pos .getX (), pos .getY (), pos .getZ ());
7274 source .sendFeedback (Component .translatable ("command.sample.sampleDensity.success" , ComponentUtils .formatXYZ (pos .getX (), pos .getY (), pos .getZ ()), ComponentUtils .formatNumber (density )));
7375
0 commit comments