unimplement PropertyHolder

This commit is contained in:
dfsek
2021-12-02 18:08:08 -07:00
parent 1c7c7af105
commit 71a39ba05b
3 changed files with 2 additions and 8 deletions

View File

@@ -70,7 +70,7 @@ public class CheckFunction implements Function<String> {
private String apply(Vector3 vector, WritableWorld world) {
int y = vector.getBlockY();
if(y >= world.getMaxHeight() || y < 0) return "AIR";
SamplerProvider cache = world.getConfig().getSamplerCache();
SamplerProvider cache = world.getGenerator().getSamplerCache();
double comp = sample(vector.getBlockX(), vector.getBlockY(), vector.getBlockZ(), cache);
if(comp > 0) return "LAND"; // If noise val is greater than zero, location will always be land.