Fix casing in shiftClickActionIndex (#9404)

This commit is contained in:
AttackOfTheMoons
2019-07-19 00:07:13 -10:00
committed by Tomas Slusny
parent 44cf040cac
commit 43dedd08dc
2 changed files with 5 additions and 5 deletions

View File

@@ -129,9 +129,9 @@ public interface ItemComposition
/** /**
* Sets the menu action index of the shift-click action. * Sets the menu action index of the shift-click action.
* *
* @param shiftclickActionIndex the new index of the shift-click action * @param shiftClickActionIndex the new index of the shift-click action
*/ */
void setShiftClickActionIndex(int shiftclickActionIndex); void setShiftClickActionIndex(int shiftClickActionIndex);
/** /**
* Resets the menu action index of the shift-click action to its * Resets the menu action index of the shift-click action to its

View File

@@ -262,12 +262,12 @@ public class MenuEntrySwapperPlugin extends Plugin
ItemComposition itemComposition = client.getItemDefinition(itemId); ItemComposition itemComposition = client.getItemDefinition(itemId);
String itemName = itemComposition.getName(); String itemName = itemComposition.getName();
String option = "Use"; String option = "Use";
int shiftClickActionindex = itemComposition.getShiftClickActionIndex(); int shiftClickActionIndex = itemComposition.getShiftClickActionIndex();
String[] inventoryActions = itemComposition.getInventoryActions(); String[] inventoryActions = itemComposition.getInventoryActions();
if (shiftClickActionindex >= 0 && shiftClickActionindex < inventoryActions.length) if (shiftClickActionIndex >= 0 && shiftClickActionIndex < inventoryActions.length)
{ {
option = inventoryActions[shiftClickActionindex]; option = inventoryActions[shiftClickActionIndex];
} }
MenuEntry[] entries = event.getMenuEntries(); MenuEntry[] entries = event.getMenuEntries();