project(mixins): Shiftclick drop

This commit is contained in:
Owain van Brakel
2022-04-30 23:06:24 +02:00
parent 0e640d1415
commit 67080d2174
2 changed files with 59 additions and 27 deletions

View File

@@ -328,11 +328,15 @@ public class RuneLiteMenuEntry implements MenuEntry
public boolean isItemOp()
{
MenuAction var1 = this.getType();
if (var1 == MenuAction.CC_OP || var1 == MenuAction.CC_OP_LOW_PRIORITY) {
if (var1 == MenuAction.CC_OP || var1 == MenuAction.CC_OP_LOW_PRIORITY)
{
int var2 = this.getIdentifier();
int var3 = this.getParam1();
if (var3 == 9764864) {
switch(var2) {
if (var3 == 9764864)
{
switch (var2)
{
case 1:
case 2:
case 3:
case 4:
@@ -350,30 +354,7 @@ public class RuneLiteMenuEntry implements MenuEntry
@Override
public int getItemOp()
{
MenuAction var1 = this.getType();
if (var1 == MenuAction.CC_OP || var1 == MenuAction.CC_OP_LOW_PRIORITY) {
int var2 = this.getIdentifier();
int var3 = this.getParam1();
if (var3 == 9764864) {
switch(var2) {
case 2:
return 1;
case 3:
return 2;
case 4:
return 3;
case 5:
default:
break;
case 6:
return 4;
case 7:
return 5;
}
}
}
return -1;
throw new NotImplementedException();
}
@Override