diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/PlatePressRecipe.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/PlatePressRecipe.kt index dbc68c2c1..784ca124b 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/PlatePressRecipe.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/PlatePressRecipe.kt @@ -109,12 +109,13 @@ object PlatePressRecipeFactory : RecipeSerializer { } override fun fromNetwork(loc: ResourceLocation, buff: FriendlyByteBuf): PlatePressRecipe { - return PlatePressRecipe(loc, Ingredient.fromNetwork(buff), Ingredient.fromNetwork(buff), buff.readInt()) + return PlatePressRecipe(loc, Ingredient.fromNetwork(buff), Ingredient.fromNetwork(buff), buff.readInt(), buff.readInt()) } override fun toNetwork(buff: FriendlyByteBuf, recipe: PlatePressRecipe) { recipe.input.toNetwork(buff) recipe.output.toNetwork(buff) + buff.writeInt(recipe.count) buff.writeInt(recipe.workTime) } }