Third time lucky
This commit is contained in:
@@ -46,7 +46,7 @@ public class PacketSyncDonationPerks implements IMessageHandler<PacketSyncDonati
|
|||||||
this.elements = new ArrayList<>();
|
this.elements = new ArrayList<>();
|
||||||
while(buf.isReadable()){
|
while(buf.isReadable()){
|
||||||
int i = buf.readShort();
|
int i = buf.readShort();
|
||||||
elements.add(i == -1 ? null : Element.values()[buf.readShort()]);
|
elements.add(i == -1 ? null : Element.values()[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user