menu entry swapper: replace some client.getItemDefinition calls with itemManager.getItemComposition

This commit is contained in:
Adam
2020-12-19 14:01:19 -05:00
parent 5dc5adc01f
commit c05d29424f

View File

@@ -476,7 +476,7 @@ public class MenuEntrySwapperPlugin extends Plugin
return;
}
ItemComposition itemComposition = client.getItemDefinition(itemId);
ItemComposition itemComposition = itemManager.getItemComposition(itemId);
String itemName = itemComposition.getName();
String option = "Use";
int shiftClickActionIndex = itemComposition.getShiftClickActionIndex();
@@ -597,7 +597,7 @@ public class MenuEntrySwapperPlugin extends Plugin
String option = event.getMenuOption();
String target = event.getMenuTarget();
ItemComposition itemComposition = client.getItemDefinition(itemId);
ItemComposition itemComposition = itemManager.getItemComposition(itemId);
if (option.equals(RESET) && target.equals(MENU_TARGET))
{