Fix build

This commit is contained in:
Sollace 2023-12-30 23:37:49 +01:00
parent 90c7148e6d
commit 4abb1774b7
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -26,7 +26,7 @@ public class FruitBlock extends Block implements Buckable {
public static final MapCodec<FruitBlock> CODEC = RecordCodecBuilder.mapCodec(instance -> instance.group(
Direction.CODEC.fieldOf("attachment_face").forGetter(b -> b.attachmentFace),
Registries.BLOCK.getCodec().fieldOf("stem").forGetter(b -> b.stem),
RecordCodecBuilder.create(i -> i.group(
RecordCodecBuilder.<VoxelShape>create(i -> i.group(
Codec.DOUBLE.fieldOf("stem_offset").forGetter(b -> (double)0),
Codec.DOUBLE.fieldOf("fruit_offset").forGetter(b -> (double)0)
).apply(i, FruitBlock::createFruitShape)).fieldOf("shape").forGetter(b -> b.shape),