Fix casing in shiftClickActionIndex (#9404)
This commit is contained in:
committed by
Tomas Slusny
parent
44cf040cac
commit
43dedd08dc
@@ -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
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user