Ah yes, matter slots

This commit is contained in:
DBotThePony 2024-10-08 09:42:18 +07:00
parent e13ab9f087
commit 5299c20970
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -48,7 +48,7 @@ class MatterDustItem : Item(Properties().stacksTo(64)), IMatterItem {
companion object {
val CODEC: MapCodec<Randomizer> = RecordCodecBuilder.mapCodec {
it.group(
DecimalProvider.CODEC.fieldOf("slots").forGetter(Randomizer::matter),
DecimalProvider.CODEC.fieldOf("matter").forGetter(Randomizer::matter),
IntProvider.CODEC.optionalFieldOf("luck_bias", ConstantInt.ZERO).forGetter(Randomizer::luckBias),
).apply(it, ::Randomizer)
}