Lithostitched

Lithostitched

21M Downloads

Allow create wrapper marker with direct reference

SettingDust opened this issue ยท 0 comments

commented

https://github.com/Apollounknowndev/lithostitched/blob/1.20.1/common/src/main/java/dev/worldgen/lithostitched/worldgen/modifier/util/DensityFunctionWrapper.java#L35
It's avoiding to create wrapper in code. The WrappedMarkerDensityFunction won't be considered as marker

Not working

DensityFunctionTypes.interpolated(
    DensityFunctionTypes.flatCache(
        DensityFunctionTypes.add(
            offset,
            DensityFunctionTypes.mul(scale, WrappedMarkerDensityFunction())
        )
    )
)

Working

DensityFunctionTypes.interpolated(
    DensityFunctionTypes.flatCache(
        DensityFunctionTypes.add(
            offset,
            DensityFunctionTypes.mul(
                scale,
                DensityFunctionTypes.RegistryEntryHolder(
                    RegistryEntry.Direct(WrappedMarkerDensityFunction())
                )
            )
        )
    )
)