Fix reading of recipes in ServerUnlockRecipesPacket

This commit is contained in:
Jonas Herzig 2017-06-10 10:04:57 +02:00
parent 0003b5f4ae
commit 9be58c55d8

View file

@ -84,9 +84,9 @@ public class ServerUnlockRecipesPacket implements Packet {
}
int size = in.readVarInt();
this.alreadyKnownRecipes = new ArrayList<>(size);
this.recipes = new ArrayList<>(size);
for (int i = 0; i < size; i++) {
this.alreadyKnownRecipes.add(in.readVarInt());
this.recipes.add(in.readVarInt());
}
}