Merge remote-tracking branch 'origin/master' into master
This commit is contained in:
commit
20092b91b2
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user