upstream keyboard bankpin, enforce dev mode

This commit is contained in:
therealunull
2020-12-16 14:12:20 -05:00
parent 39d0c2e15a
commit 665259b5e5
3 changed files with 16 additions and 8 deletions

View File

@@ -1023,6 +1023,7 @@ public interface Widget
static boolean getDragParent(Widget widget)
{
throw new UnsupportedOperationException("Implement");
System.out.println("ERROR: IMPLEMENT"); //Would throw but that breaks widget inspector
return false;
}
}

View File

@@ -260,7 +260,7 @@ public class RuneLite
ClassPreloader.preload();
}, "Preloader").start();
final boolean developerMode = options.has("developer-mode") && RuneLiteProperties.getLauncherVersion() == null;
final boolean developerMode = true;
if (developerMode)
{

View File

@@ -590,6 +590,19 @@ public abstract class RSClientMixin implements RSClient
return getWidget(groupId, childId);
}
@Inject
@Override
public Widget getWidget(int id)
{
for (WidgetInfo widgetInfo : WidgetInfo.values())
{
if (widgetInfo.getId() == id)
return getWidget(widgetInfo);
}
return null;
}
@Inject
@Override
public RSWidget[] getGroup(int groupId)
@@ -1968,11 +1981,5 @@ public abstract class RSClientMixin implements RSClient
{
return this.outdatedScripts;
}
@Override
public Widget getWidget(int i)
{
return getWidget(i, i);
}
}