mirror of
https://github.com/GeyserMC/MCProtocolLib.git
synced 2024-12-04 21:01:02 -05:00
Fix reading of recipes in ServerUnlockRecipesPacket
This commit is contained in:
parent
0003b5f4ae
commit
9be58c55d8
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue