mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +01:00
Fixed processing recipe packet data
This commit is contained in:
parent
f564ce1a33
commit
bfd4b9dbda
1 changed files with 11 additions and 4 deletions
|
@ -120,13 +120,20 @@ public class ProcessingRecipeSerializer<T extends ProcessingRecipe<?>> extends F
|
|||
NonNullList<ProcessingOutput> results = NonNullList.create();
|
||||
NonNullList<FluidStack> fluidResults = NonNullList.create();
|
||||
|
||||
for (int i = 0; i < buffer.readVarInt(); i++)
|
||||
int size = buffer.readVarInt();
|
||||
for (int i = 0; i < size; i++)
|
||||
ingredients.add(Ingredient.read(buffer));
|
||||
for (int i = 0; i < buffer.readVarInt(); i++)
|
||||
|
||||
size = buffer.readVarInt();
|
||||
for (int i = 0; i < size; i++)
|
||||
fluidIngredients.add(FluidIngredient.read(buffer));
|
||||
for (int i = 0; i < buffer.readVarInt(); i++)
|
||||
|
||||
size = buffer.readVarInt();
|
||||
for (int i = 0; i < size; i++)
|
||||
results.add(ProcessingOutput.read(buffer));
|
||||
for (int i = 0; i < buffer.readVarInt(); i++)
|
||||
|
||||
size = buffer.readVarInt();
|
||||
for (int i = 0; i < size; i++)
|
||||
fluidResults.add(FluidStack.readFromPacket(buffer));
|
||||
|
||||
return new ProcessingRecipeBuilder<>(factory, recipeId).withItemIngredients(ingredients)
|
||||
|
|
Loading…
Reference in a new issue