Fix equipment inspector plugin
otherwise injector throws array out of bounds
This commit is contained in:
@@ -150,6 +150,9 @@ public class EquipmentInspectorPlugin extends Plugin {
|
|||||||
Map<KitType, ItemComposition> playerEquipment = new HashMap<>();
|
Map<KitType, ItemComposition> playerEquipment = new HashMap<>();
|
||||||
|
|
||||||
for (KitType kitType : KitType.values()) {
|
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);
|
int itemId = p.getPlayerComposition().getEquipmentId(kitType);
|
||||||
if (itemId != -1) {
|
if (itemId != -1) {
|
||||||
ItemComposition itemComposition = client.getItemDefinition(itemId);
|
ItemComposition itemComposition = client.getItemDefinition(itemId);
|
||||||
|
|||||||
Reference in New Issue
Block a user