Fixed probable future update problem by checking protocol 166.

This commit is contained in:
MobiusDevelopment
2019-04-23 13:21:12 +00:00
parent 6131c3b641
commit 62aa96af5d

View File

@@ -63,7 +63,7 @@ public class EnchantResult implements IClientOutgoingPacket
packet.writeD(_crystal);
packet.writeQ(_count);
if (!Config.PROTOCOL_LIST.contains(166)) // 152
if ((Config.PROTOCOL_LIST.size() == 1) && Config.PROTOCOL_LIST.contains(152)) // 152
{
packet.writeD(_enchantLevel);
for (int option : _enchantOptions)