Merge branch 'ver/6.6.0' into dev/7.0-2

This commit is contained in:
Zoe Gidiere
2024-10-09 12:53:46 -06:00
11 changed files with 152 additions and 9 deletions

View File

@@ -6,10 +6,7 @@ package com.dfsek.terra.api.noise;
public interface DerivativeNoiseSampler extends NoiseSampler {
static boolean isDifferentiable(NoiseSampler sampler) {
if(sampler instanceof DerivativeNoiseSampler dSampler) {
return dSampler.isDifferentiable();
}
return false;
return sampler instanceof DerivativeNoiseSampler dSampler && dSampler.isDifferentiable();
}
/**