mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-28 07:37:58 +01:00
Fix build
This commit is contained in:
parent
90c7148e6d
commit
4abb1774b7
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ public class FruitBlock extends Block implements Buckable {
|
||||||
public static final MapCodec<FruitBlock> CODEC = RecordCodecBuilder.mapCodec(instance -> instance.group(
|
public static final MapCodec<FruitBlock> CODEC = RecordCodecBuilder.mapCodec(instance -> instance.group(
|
||||||
Direction.CODEC.fieldOf("attachment_face").forGetter(b -> b.attachmentFace),
|
Direction.CODEC.fieldOf("attachment_face").forGetter(b -> b.attachmentFace),
|
||||||
Registries.BLOCK.getCodec().fieldOf("stem").forGetter(b -> b.stem),
|
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("stem_offset").forGetter(b -> (double)0),
|
||||||
Codec.DOUBLE.fieldOf("fruit_offset").forGetter(b -> (double)0)
|
Codec.DOUBLE.fieldOf("fruit_offset").forGetter(b -> (double)0)
|
||||||
).apply(i, FruitBlock::createFruitShape)).fieldOf("shape").forGetter(b -> b.shape),
|
).apply(i, FruitBlock::createFruitShape)).fieldOf("shape").forGetter(b -> b.shape),
|
||||||
|
|
Loading…
Reference in a new issue