Merge remote-tracking branch 'origin/master'

This commit is contained in:
Owain van Brakel
2021-12-17 11:45:55 +01:00
6 changed files with 20 additions and 48 deletions

View File

@@ -168,6 +168,7 @@ import net.runelite.rs.api.RSWidget;
import net.runelite.rs.api.RSWorld;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import sun.reflect.generics.reflectiveObjects.NotImplementedException;
@Mixin(RSClient.class)
public abstract class RSClientMixin implements RSClient
@@ -799,18 +800,18 @@ public abstract class RSClientMixin implements RSClient
@Inject
public static RSRuneLiteMenuEntry newBareRuneliteMenuEntry()
{
return null;
throw new NotImplementedException();
}
@Inject
public static RSRuneLiteMenuEntry newRuneliteMenuEntry(int idx)
{
return null;
throw new NotImplementedException();
}
@Inject
@Override
public MenuEntry createMenuEntry(String option, String target, int identifier, int opcode, int param1, int param2)
public MenuEntry createMenuEntry(String option, String target, int identifier, int opcode, int param1, int param2, boolean forceLeftClick)
{
RSRuneLiteMenuEntry menuEntry = newBareRuneliteMenuEntry();
@@ -821,6 +822,7 @@ public abstract class RSClientMixin implements RSClient
menuEntry.setParam0(param1);
menuEntry.setParam1(param2);
menuEntry.setConsumer(null);
menuEntry.setForceLeftClick(forceLeftClick);
return menuEntry;
}