From f76956803101d7b2ea48f0b24bd803d0505a03cd Mon Sep 17 00:00:00 2001 From: Sollace Date: Sun, 3 Dec 2023 21:19:36 +0000 Subject: [PATCH] *punches gradle in the gut* --- .../java/com/minelittlepony/unicopia/diet/affliction/Range.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/minelittlepony/unicopia/diet/affliction/Range.java b/src/main/java/com/minelittlepony/unicopia/diet/affliction/Range.java index dfe7e009..ed84ad97 100644 --- a/src/main/java/com/minelittlepony/unicopia/diet/affliction/Range.java +++ b/src/main/java/com/minelittlepony/unicopia/diet/affliction/Range.java @@ -10,7 +10,7 @@ import net.minecraft.util.dynamic.Codecs; record Range(int min, int max) { public static final Codec CODEC = Codecs.xor( Codec.INT.xmap(value -> Range.of(value, -1), range -> range.min()), - RecordCodecBuilder.create(instance -> instance.group( + RecordCodecBuilder.create(instance -> instance.group( Codec.INT.fieldOf("min").forGetter(Range::min), Codec.INT.fieldOf("max").forGetter(Range::max) ).apply(instance, Range::of))