Do not use getWritableBytes for ExCollectionRegister.

This commit is contained in:
MobiusDevelopment
2022-10-09 21:21:42 +00:00
parent b108ba37c3
commit ef797e8792
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ public class ExCollectionRegister implements IClientOutgoingPacket
packet.writeH(_collectionId);
packet.writeC(_success); // success
packet.writeC(0); // recursive reward
packet.writeH(packet.getWritableBytes()); // size
packet.writeH(249); // 256 - size so far
packet.writeC(_index); // slot index
packet.writeD(_collectionInfo.getId()); // item classId
packet.writeH(_collectionInfo.getEnchantLevel()); // enchant level

View File

@@ -46,7 +46,7 @@ public class ExCollectionRegister implements IClientOutgoingPacket
packet.writeH(_collectionId);
packet.writeC(_success); // success
packet.writeC(0); // recursive reward
packet.writeH(packet.getWritableBytes()); // size
packet.writeH(249); // 256 - size so far
packet.writeC(_index); // slot index
packet.writeD(_collectionInfo.getId()); // item classId
packet.writeH(_collectionInfo.getEnchantLevel()); // enchant level