mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-22 19:39:24 +01:00
Update CrushingRecipe.java
This commit is contained in:
parent
50407e9524
commit
02a6918267
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ public class CrushingRecipe implements Recipe<Container> {
|
|||
public static class Serializer implements RecipeSerializer<CrushingRecipe> {
|
||||
private static final Codec<CrushingResult> RESULT_CODEC = RecordCodecBuilder.create(
|
||||
instance -> instance.group(
|
||||
ItemStack.ITEM_WITH_COUNT_CODEC.fieldOf("result").forGetter(result -> result.stack),
|
||||
ItemStack.CODEC.fieldOf("result").forGetter(result -> result.stack),
|
||||
Codec.FLOAT.optionalFieldOf("chance", 1.0F).forGetter(recipe -> recipe.chance)
|
||||
)
|
||||
.apply(instance, CrushingResult::new)
|
||||
|
|
Loading…
Reference in a new issue