Merge remote-tracking branch 'origin/master' into master

This commit is contained in:
DBotThePony 2022-10-15 23:34:15 +07:00
commit 20092b91b2
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -109,12 +109,13 @@ object PlatePressRecipeFactory : RecipeSerializer<PlatePressRecipe> {
} }
override fun fromNetwork(loc: ResourceLocation, buff: FriendlyByteBuf): PlatePressRecipe { 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) { override fun toNetwork(buff: FriendlyByteBuf, recipe: PlatePressRecipe) {
recipe.input.toNetwork(buff) recipe.input.toNetwork(buff)
recipe.output.toNetwork(buff) recipe.output.toNetwork(buff)
buff.writeInt(recipe.count)
buff.writeInt(recipe.workTime) buff.writeInt(recipe.workTime)
} }
} }