mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-11-13 14:04:05 +01:00
Fixed processing recipe packet data
This commit is contained in:
parent
f564ce1a33
commit
bfd4b9dbda
@ -120,13 +120,20 @@ public class ProcessingRecipeSerializer<T extends ProcessingRecipe<?>> extends F
|
|||||||
NonNullList<ProcessingOutput> results = NonNullList.create();
|
NonNullList<ProcessingOutput> results = NonNullList.create();
|
||||||
NonNullList<FluidStack> fluidResults = 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));
|
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));
|
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));
|
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));
|
fluidResults.add(FluidStack.readFromPacket(buffer));
|
||||||
|
|
||||||
return new ProcessingRecipeBuilder<>(factory, recipeId).withItemIngredients(ingredients)
|
return new ProcessingRecipeBuilder<>(factory, recipeId).withItemIngredients(ingredients)
|
||||||
|
Loading…
Reference in New Issue
Block a user