- disabled "sample_noise"
This commit is contained in:
gnembon committed 2022-02-16 22:23:52 +01:00
1 parent aaea11d82d
commit fa1e6ce086
8 files changed
+74 -61

No files matched your search

@@ -1594,6 +1594,8 @@ public class WorldAccess {
@ScarpetFunction(maxParams = -1)
public Value sample_noise(Context c, @Locator.Block BlockPos pos, String... noiseQueries) {
return Value.NULL;
/*
int mappedX = QuartPos.fromBlock(pos.getX());
int mappedY = QuartPos.fromBlock(pos.getY());
int mappedZ = QuartPos.fromBlock(pos.getZ());
@@ -1608,6 +1610,6 @@ public class WorldAccess {
double noiseValue = ((NoiseColumnSamplerInterface) mns).getNoiseSample(noise, mappedX, mappedY, mappedZ);
ret.put(new StringValue(noise), new NumericValue(noiseValue));
}
return MapValue.wrap(ret);
return MapValue.wrap(ret);*/
}
}
@@ -114,7 +114,10 @@ public class WorldTools
// return server.getRegistryManager().get(Registry.CHUNK_GENERATOR_SETTINGS_KEY).getOrThrow(ChunkGeneratorSettings.OVERWORLD);
//});
chunkGenerator2 = new NoiseBasedChunkGenerator(server.registryAccess().registryOrThrow(Registry.NOISE_REGISTRY), MultiNoiseBiomeSource.Preset.OVERWORLD.biomeSource(server.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY)), seed,
chunkGenerator2 = new NoiseBasedChunkGenerator(
server.registryAccess().registryOrThrow(Registry.NOISE_REGISTRY),
server.registryAccess().registryOrThrow(Registry.CONFIGURED_STRUCTURE_FEATURE_REGISTRY),
MultiNoiseBiomeSource.Preset.OVERWORLD.biomeSource(server.registryAccess().registryOrThrow(Registry.BIOME_REGISTRY)), seed,
Holder.direct(server.registryAccess().registryOrThrow(Registry.NOISE_GENERATOR_SETTINGS_REGISTRY).getOrThrow(NoiseGeneratorSettings.OVERWORLD))
);