Update RSClientMixin.java

This commit is contained in:
Kyle
2020-05-10 11:51:28 +01:00
committed by GitHub
parent d4589f548c
commit ae2d8b4a43

View File

@@ -528,6 +528,10 @@ public abstract class RSClientMixin implements RSClient
public Widget[] getWidgetRoots()
{
int topGroup = getWidgetRoot();
if (topGroup == -1)
{
return new Widget[]{};
}
List<Widget> widgets = new ArrayList<Widget>();
for (RSWidget widget : getWidgets()[topGroup])
{