Mojira Archive
MC-252814

Clamp density function takes a direct input and doesn't allow a reference

The "clamp" density function type has an "input" field. But it only allows a direct (inlined) density function or a constant, it doesn't allow a reference (string). This is inconsistent with every other density function that takes another density function as argument.

The reason is because DensityFunctions.Clamp uses DensityFunction.DIRECT_CODEC, instead of DensityFunctions.HOLDER_HELPER_CODEC, which is what every other density function type uses.

Unresolved

[Helper] Misode

2022-06-11, 03:09 AM

2024-10-03, 01:16 AM

9

7

Plausible

Low

Platform

Custom Worlds

1.19 - 24w40a1.19, 1.19.2, 1.19.3 Release Candidate 1, 1.20.4, 23w51b, 1.20.6, 1.21.1, 24w40a

-