From d5d9ee473f10b4c3e288c19949f87be7ffd463b7 Mon Sep 17 00:00:00 2001 From: YuRaNnNzZZ Date: Sat, 15 Oct 2022 11:26:23 +0300 Subject: [PATCH] 200 Ticks --- .../kotlin/ru/dbotthepony/mc/otm/recipe/PlatePressRecipe.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 9242d442e..79b4f2589 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/PlatePressRecipe.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/recipe/PlatePressRecipe.kt @@ -108,12 +108,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) } }