mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2025-07-04 00:45:57 +00:00
noise -> sampler in palette configs
This commit is contained in:
parent
df8489c1af
commit
3225746940
@ -21,7 +21,7 @@ import com.dfsek.terra.api.noise.NoiseSampler;
|
|||||||
|
|
||||||
@SuppressWarnings({ "FieldMayBeFinal", "unused" })
|
@SuppressWarnings({ "FieldMayBeFinal", "unused" })
|
||||||
public class PaletteTemplate implements AbstractableTemplate {
|
public class PaletteTemplate implements AbstractableTemplate {
|
||||||
@Value("noise")
|
@Value("sampler")
|
||||||
@Default
|
@Default
|
||||||
private @Meta NoiseSampler noise = NoiseSampler.zero();
|
private @Meta NoiseSampler noise = NoiseSampler.zero();
|
||||||
|
|
||||||
|
@ -40,8 +40,8 @@ public class PaletteLayerLoader implements TypeLoader<PaletteLayerHolder> {
|
|||||||
BLOCK_DATA_PROBABILITY_COLLECTION_TYPE, map.get("materials"));
|
BLOCK_DATA_PROBABILITY_COLLECTION_TYPE, map.get("materials"));
|
||||||
|
|
||||||
NoiseSampler sampler = null;
|
NoiseSampler sampler = null;
|
||||||
if(map.containsKey("noise")) {
|
if(map.containsKey("sampler")) {
|
||||||
sampler = configLoader.loadType(NoiseSampler.class, map.get("noise"));
|
sampler = configLoader.loadType(NoiseSampler.class, map.get("sampler"));
|
||||||
}
|
}
|
||||||
|
|
||||||
if(collection == null) throw new LoadException("Collection is null: " + map.get("materials"));
|
if(collection == null) throw new LoadException("Collection is null: " + map.get("materials"));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user