Fix equipment inspector plugin

otherwise injector throws array out of bounds
This commit is contained in:
Giovanni Ruddy Gazivoda
2019-04-22 17:14:10 -04:00
parent 5c2a759d83
commit 2f0d69b8fa

View File

@@ -150,6 +150,9 @@ public class EquipmentInspectorPlugin extends Plugin {
Map<KitType, ItemComposition> playerEquipment = new HashMap<>();
for (KitType kitType : KitType.values()) {
if (kitType == KitType.RING) continue; //prevents the equipment inspector from breaking
if (kitType == KitType.AMMUNITION) continue;
int itemId = p.getPlayerComposition().getEquipmentId(kitType);
if (itemId != -1) {
ItemComposition itemComposition = client.getItemDefinition(itemId);